minor, refine sample.sh

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

Branch: refs/heads/master
Commit: 944d3aa1155d299ffe69e194f316cf29777120c8
Parents: de193bc
Author: Cheng Wang <cheng.w...@kyligence.io>
Authored: Fri Jun 2 14:29:29 2017 +0800
Committer: hongbin ma <m...@kyligence.io>
Committed: Fri Jun 2 14:31:21 2017 +0800

----------------------------------------------------------------------
 build/bin/sample.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/944d3aa1/build/bin/sample.sh
----------------------------------------------------------------------
diff --git a/build/bin/sample.sh b/build/bin/sample.sh
index bc9ba5a..babab86 100644
--- a/build/bin/sample.sh
+++ b/build/bin/sample.sh
@@ -24,7 +24,6 @@ source ${dir}/find-hadoop-conf-dir.sh
 source ${dir}/load-hive-conf.sh
 
 source ${dir}/check-env.sh "if-not-yet"
-job_jar=`find -L ${KYLIN_HOME}/lib/ -name kylin-job*.jar`
 
 cd ${KYLIN_HOME}/sample_cube/data
 
@@ -98,6 +97,6 @@ cd ${KYLIN_HOME}/sample_cube/metadata/table
 ls -1 DEFAULT.KYLIN_*.json|sed "s/\(DEFAULT\)\(.*\)\.json/mv & 
$sample_database\2.json/"|sh -v
 
 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; }
+${dir}/kylin.sh org.apache.kylin.common.persistence.ResourceTool upload 
${KYLIN_HOME}/sample_cube/metadata  || { exit 1; }
 echo "Sample cube is created successfully in project 'learn_kylin'."
 echo "Restart Kylin server or reload the metadata from web UI to see the 
change."

Reply via email to