kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lid...@apache.org
Subject [2/2] kylin git commit: KYLIN-1993 update sample metadata files
Date Thu, 01 Sep 2016 14:48:01 GMT
KYLIN-1993 update sample metadata files


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/cf102634
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/cf102634
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/cf102634

Branch: refs/heads/master
Commit: cf102634137e2e72f980e51b9c997b8215dede07
Parents: 7d32ecb
Author: lidongsjtu <lidong@apache.org>
Authored: Thu Sep 1 22:47:28 2016 +0800
Committer: lidongsjtu <lidong@apache.org>
Committed: Thu Sep 1 22:47:35 2016 +0800

----------------------------------------------------------------------
 build/bin/sample.sh | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/cf102634/build/bin/sample.sh
----------------------------------------------------------------------
diff --git a/build/bin/sample.sh b/build/bin/sample.sh
index 06e05d1..c915fb4 100644
--- a/build/bin/sample.sh
+++ b/build/bin/sample.sh
@@ -51,6 +51,10 @@ fi
 export default_engine_type
 export default_storage_type
 
+mkdir -p ${KYLIN_HOME}/sample_cube/metadata
+cp -rf ${KYLIN_HOME}/sample_cube/template/* ${KYLIN_HOME}/sample_cube/metadata
+envsubst < ${KYLIN_HOME}/sample_cube/template/cube_desc/kylin_sales_cube_desc.json >
${KYLIN_HOME}/sample_cube/metadata/cube_desc/kylin_sales_cube_desc.json
+
 cd ${KYLIN_HOME}
 hbase org.apache.hadoop.util.RunJar ${job_jar} org.apache.kylin.common.persistence.ResourceTool
upload ${KYLIN_HOME}/sample_cube/metadata  || { exit 1; }
 echo "Sample cube is created successfully in project 'learn_kylin'; Restart Kylin server
or reload the metadata from web UI to see the change."


Mime
View raw message