You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by bi...@apache.org on 2018/02/09 13:25:40 UTC

[4/4] kylin git commit: Minor, make the sample kylin_streaming_cube be consistent with kylin_sales

Minor, make the sample kylin_streaming_cube be consistent with kylin_sales

Signed-off-by: shaofengshi <sh...@apache.org>


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

Branch: refs/heads/2.3.x
Commit: b4b25ec8cec9750b7a671c960448dd9feed56f1a
Parents: bd88a71
Author: shaofengshi <sh...@apache.org>
Authored: Tue Feb 6 11:28:42 2018 +0800
Committer: Billy Liu <bi...@apache.org>
Committed: Fri Feb 9 21:25:19 2018 +0800

----------------------------------------------------------------------
 build/bin/sample.sh                                              | 2 ++
 .../sample_cube/template/cube_desc/kylin_streaming_cube.json     | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/b4b25ec8/build/bin/sample.sh
----------------------------------------------------------------------
diff --git a/build/bin/sample.sh b/build/bin/sample.sh
index 0809d2b..18823ae 100755
--- a/build/bin/sample.sh
+++ b/build/bin/sample.sh
@@ -87,6 +87,8 @@ cp -rf ${KYLIN_HOME}/sample_cube/template/* ${KYLIN_HOME}/sample_cube/metadata
 
 sed -i "s/%default_storage_type%/${default_storage_type}/g" ${KYLIN_HOME}/sample_cube/metadata/cube_desc/kylin_sales_cube.json
 sed -i "s/%default_engine_type%/${default_engine_type}/g" ${KYLIN_HOME}/sample_cube/metadata/cube_desc/kylin_sales_cube.json
+sed -i "s/%default_storage_type%/${default_storage_type}/g" ${KYLIN_HOME}/sample_cube/metadata/cube_desc/kylin_streaming_cube.json
+sed -i "s/%default_engine_type%/${default_engine_type}/g" ${KYLIN_HOME}/sample_cube/metadata/cube_desc/kylin_streaming_cube.json
 
 #### Add version info into cubes
 kylin_version_str=`bash ${KYLIN_HOME}/bin/kylin.sh version | grep kylin.version`

http://git-wip-us.apache.org/repos/asf/kylin/blob/b4b25ec8/examples/sample_cube/template/cube_desc/kylin_streaming_cube.json
----------------------------------------------------------------------
diff --git a/examples/sample_cube/template/cube_desc/kylin_streaming_cube.json b/examples/sample_cube/template/cube_desc/kylin_streaming_cube.json
index 2bd5584..21466e0 100644
--- a/examples/sample_cube/template/cube_desc/kylin_streaming_cube.json
+++ b/examples/sample_cube/template/cube_desc/kylin_streaming_cube.json
@@ -145,7 +145,7 @@
   "status_need_notify" : [ ],
   "auto_merge_time_ranges" : null,
   "retention_range" : 0,
-  "engine_type" : 2,
-  "storage_type" : 2,
+  "engine_type" : %default_engine_type%,
+  "storage_type" : %default_storage_type%,
   "partition_date_start": 0
 }
\ No newline at end of file