This repository was archived by the owner on Jun 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
EXPORT MODEL
ali1rathore edited this page Sep 10, 2018
·
1 revision
EXPORT MODEL [ COMPONENTS ] [ starschema | snapindex | stats | all ]
ON <fact-table> TO "/path/to/output/directory"
Command to export a SNAP Model.
-
Components can be
starschema
,snapindex
,stats
orall
; default isall
- The user can optionally specify the root folder to export to; if not specified the
spark.sparklinedata.spmd.model.folder
setting controls the root folder location. - Model components are exported to
db/table
folder under the root folder. There is a separate json file for each component.
-- export all components
export model on lineitem_small to '/tmp';
-- export starschema
export model components starschema on lineitem_small to '/tmp'
-- export snapindex
export model snapindex on lineitem_small to '/tmp'