Repository: kylin
Updated Branches:
  refs/heads/yang21-cdh5.7 20df2afbb -> 14abd9d7f (forced update)


minor, bin/sample.sh


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

Branch: refs/heads/yang21-cdh5.7
Commit: 8aa91eb79d99e9cd831e09ae0a66bc0509a26c2a
Parents: 85c2754
Author: Yang Li <liy...@apache.org>
Authored: Thu Oct 6 17:02:35 2016 +0800
Committer: Yang Li <liy...@apache.org>
Committed: Thu Oct 6 17:02:35 2016 +0800

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


http://git-wip-us.apache.org/repos/asf/kylin/blob/8aa91eb7/build/bin/sample.sh
----------------------------------------------------------------------
diff --git a/build/bin/sample.sh b/build/bin/sample.sh
index 92caace..fdb8601 100644
--- a/build/bin/sample.sh
+++ b/build/bin/sample.sh
@@ -17,7 +17,8 @@
 # limitations under the License.
 #
 
-dir=$(dirname ${0})
+dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
+export KYLIN_HOME=${KYLIN_HOME:-"${dir}/../"}
 
 source ${dir}/check-env.sh
 job_jar=`find -L ${KYLIN_HOME}/lib/ -name kylin-job*.jar`
@@ -57,4 +58,5 @@ sed -i "s/%default_engine_type%/${default_engine_type}/g" 
${KYLIN_HOME}/sample_c
 
 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."
+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