You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ni...@apache.org on 2020/02/07 07:04:01 UTC
[kylin] 01/14: #4238 Fix kylin_streaming_model broken when changing
kylin.source.hive.database-for-flattable to non-default value
This is an automated email from the ASF dual-hosted git repository.
nic pushed a commit to branch 2.6.x
in repository https://gitbox.apache.org/repos/asf/kylin.git
commit f94052622d2d6cf747b76ab8b909d9fcaab32b4f
Author: mingxiang.zhao <mz...@gmail.com>
AuthorDate: Tue Nov 5 20:29:54 2019 +0800
#4238 Fix kylin_streaming_model broken when changing kylin.source.hive.database-for-flattable to non-default value
---
build/bin/sample.sh | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/build/bin/sample.sh b/build/bin/sample.sh
index 18823ae..09ca710 100755
--- a/build/bin/sample.sh
+++ b/build/bin/sample.sh
@@ -104,8 +104,17 @@ sed -i "s/DEFAULT./$sample_database./g" ${KYLIN_HOME}/sample_cube/metadata/model
sed -i "s/DEFAULT./$sample_database./g" ${KYLIN_HOME}/sample_cube/metadata/model_desc/kylin_streaming_model.json
sed -i "s/DEFAULT./$sample_database./g" ${KYLIN_HOME}/sample_cube/metadata/project/learn_kylin.json
sed -i "s/DEFAULT/$sample_database/g" ${KYLIN_HOME}/sample_cube/metadata/table/*.json
-cd ${KYLIN_HOME}/sample_cube/metadata/table
-ls -1 DEFAULT.KYLIN_*.json|sed "s/\(DEFAULT\)\(.*\)\.json/mv & $sample_database\2.json/"|sh -v
+sed -i "s/DEFAULT/$sample_database/g" ${KYLIN_HOME}/sample_cube/metadata/kafka/*.json
+sed -i "s/DEFAULT/$sample_database/g" ${KYLIN_HOME}/sample_cube/metadata/streaming/*.json
+strings=(
+ table
+ streaming
+ kafka
+)
+for i in "${strings[@]}"; do
+ cd "${KYLIN_HOME}/sample_cube/metadata/${i}"
+ ls -1 DEFAULT.KYLIN_*.json|sed "s/\(DEFAULT\)\(.*\)\.json/mv & $sample_database\2.json/"|sh -v
+done
cd ${KYLIN_HOME}
${dir}/kylin.sh org.apache.kylin.common.persistence.ResourceTool upload ${KYLIN_HOME}/sample_cube/metadata || { exit 1; }