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/1.5.x-CDH5.7 Commit: cf102634137e2e72f980e51b9c997b8215dede07 Parents: 7d32ecb Author: lidongsjtu <lid...@apache.org> Authored: Thu Sep 1 22:47:28 2016 +0800 Committer: lidongsjtu <lid...@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."