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/cd9de01c Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/cd9de01c Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/cd9de01c Branch: refs/heads/orderedbytes Commit: cd9de01c690193efede9114a6a31d1a964b0a29f Parents: 95ebc85 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:03:13 2016 +0800 ---------------------------------------------------------------------- build/bin/sample.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/cd9de01c/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."