kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mahong...@apache.org
Subject [17/29] kylin git commit: KYLIN-1054 modify find-hive-dependency.sh to use cli if the property wasn’t set
Date Wed, 02 Mar 2016 05:42:07 GMT
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-HBase1.1.3
Commit: 37c0472ec518490f2fca8bc13dd31f3459e528c3
Parents: 6db101e
Author: shaofengshi <shaofengshi@apache.org>
Authored: Sun Feb 28 10:09:42 2016 +0800
Committer: shaofengshi <shaofengshi@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}'`


Mime
View raw message