minor, refine scripts call
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/c1e2143d Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/c1e2143d Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/c1e2143d Branch: refs/heads/master Commit: c1e2143d06dfe7af714e60c0e5daa85b937ca59b Parents: cfff185 Author: lidongsjtu <lid...@apache.org> Authored: Mon May 29 11:27:07 2017 +0800 Committer: hongbin ma <m...@kyligence.io> Committed: Mon May 29 13:30:38 2017 +0800 ---------------------------------------------------------------------- build/bin/check-env.sh | 4 +++- build/bin/find-hive-dependency.sh | 4 +++- build/bin/sample.sh | 6 ++++-- 3 files changed, 10 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/c1e2143d/build/bin/check-env.sh ---------------------------------------------------------------------- diff --git a/build/bin/check-env.sh b/build/bin/check-env.sh index a3170c7..7534d12 100644 --- a/build/bin/check-env.sh +++ b/build/bin/check-env.sh @@ -18,7 +18,9 @@ # source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh -source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/find-hadoop-conf-dir.sh + +## ${dir} assigned to $KYLIN_HOME/bin in header.sh +source ${dir}/find-hadoop-conf-dir.sh if [ -z "${kylin_hadoop_conf_dir}" ]; then hadoop_conf_param= http://git-wip-us.apache.org/repos/asf/kylin/blob/c1e2143d/build/bin/find-hive-dependency.sh ---------------------------------------------------------------------- diff --git a/build/bin/find-hive-dependency.sh b/build/bin/find-hive-dependency.sh index 6d8fa65..8841687 100644 --- a/build/bin/find-hive-dependency.sh +++ b/build/bin/find-hive-dependency.sh @@ -18,7 +18,9 @@ # source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh -source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/load-hive-conf.sh + +## ${dir} assigned to $KYLIN_HOME/bin in header.sh +source ${dir}/load-hive-conf.sh echo Retrieving hive dependency... http://git-wip-us.apache.org/repos/asf/kylin/blob/c1e2143d/build/bin/sample.sh ---------------------------------------------------------------------- diff --git a/build/bin/sample.sh b/build/bin/sample.sh index b9c4ea3..bc9ba5a 100644 --- a/build/bin/sample.sh +++ b/build/bin/sample.sh @@ -18,8 +18,10 @@ # source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/header.sh -source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/find-hadoop-conf-dir.sh -source $(cd -P -- "$(dirname -- "$0")" && pwd -P)/load-hive-conf.sh + +## ${dir} assigned to $KYLIN_HOME/bin in header.sh +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`