You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2016/02/28 03:10:34 UTC
kylin git commit: KYLIN-1054 modify find-hive-dependency.sh to use cli if the property wasn’t set
Repository: kylin
Updated Branches:
refs/heads/1.x-staging 6db101edf -> 37c0472ec
KYLIN-1054 modify find-hive-dependency.sh to use cli if the property wasn’t set
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/37c0472e
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/37c0472e
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/37c0472e
Branch: refs/heads/1.x-staging
Commit: 37c0472ec518490f2fca8bc13dd31f3459e528c3
Parents: 6db101e
Author: shaofengshi <sh...@apache.org>
Authored: Sun Feb 28 10:09:42 2016 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Sun Feb 28 10:09:42 2016 +0800
----------------------------------------------------------------------
bin/find-hive-dependency.sh | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/37c0472e/bin/find-hive-dependency.sh
----------------------------------------------------------------------
diff --git a/bin/find-hive-dependency.sh b/bin/find-hive-dependency.sh
index add7d23..15e9e0a 100755
--- a/bin/find-hive-dependency.sh
+++ b/bin/find-hive-dependency.sh
@@ -20,13 +20,12 @@
client_mode=`sh ${KYLIN_HOME}/bin/get-properties.sh kylin.hive.client`
hive_env=
-if [ "${client_mode}" == "cli" ]
-then
- hive_env=`hive -e set | grep 'env:CLASSPATH'`
-elif [ "${client_mode}" == "beeline" ]
+if [ "${client_mode}" == "beeline" ]
then
beeline_params=`sh ${KYLIN_HOME}/bin/get-properties.sh kylin.hive.beeline.params`
hive_env=`beeline ${beeline_params} --outputformat=dsv -e set | grep 'env:CLASSPATH'`
+else
+ hive_env=`hive -e set | grep 'env:CLASSPATH'`
fi
hive_classpath=`echo $hive_env | grep 'env:CLASSPATH' | awk -F '=' '{print $2}'`