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/09/14 10:39:59 UTC

[05/11] kylin git commit: KYLIN-1797 when use beeline, must specify HIVE_CONF

KYLIN-1797 when use beeline, must specify HIVE_CONF

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

Branch: refs/heads/kylin-1.5.4-HBase1.x-release
Commit: 5fc5aa02cefe3a08b8903246d773dba051e2e29c
Parents: ab45614
Author: shaofengshi <sh...@apache.org>
Authored: Sat Jul 23 18:51:26 2016 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Wed Sep 14 17:24:22 2016 +0800

----------------------------------------------------------------------
 build/bin/find-hive-dependency.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/5fc5aa02/build/bin/find-hive-dependency.sh
----------------------------------------------------------------------
diff --git a/build/bin/find-hive-dependency.sh b/build/bin/find-hive-dependency.sh
index 71c2fe6..6270d77 100644
--- a/build/bin/find-hive-dependency.sh
+++ b/build/bin/find-hive-dependency.sh
@@ -31,6 +31,12 @@ hive_env=
 
 if [ "${client_mode}" == "beeline" ]
 then
+    # when use beeline, need explicitly provide HIVE_CONF
+    if [ -z "$HIVE_CONF" ]
+    then
+        echo "Please set HIVE_CONF to the path which has hive-site.xml."
+        exit 1
+    fi
     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
@@ -69,7 +75,7 @@ done
 
 if [ -z "$hive_conf_path" ]
 then
-    echo "Couldn't find hive configuration directory. Please set HIVE_CONF to the path which contains hive-site.xml."
+    echo "Couldn't find hive configuration directory. Please set HIVE_CONF to the path which has hive-site.xml."
     exit 1
 fi