kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaofeng...@apache.org
Subject [41/55] [abbrv] kylin git commit: KYLIN-1797 when use beeline, must specify HIVE_CONF
Date Tue, 26 Jul 2016 03:34:00 GMT
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/3e553c0e
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/3e553c0e
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/3e553c0e

Branch: refs/heads/1.5.x-CDH5.7
Commit: 3e553c0e944c4f61d5df7f7ee69315a2916654b6
Parents: 9d48273
Author: shaofengshi <shaofengshi@apache.org>
Authored: Sat Jul 23 18:51:26 2016 +0800
Committer: shaofengshi <shaofengshi@apache.org>
Committed: Sat Jul 23 18:51:26 2016 +0800

----------------------------------------------------------------------
 build/bin/find-hive-dependency.sh | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/3e553c0e/build/bin/find-hive-dependency.sh
----------------------------------------------------------------------
diff --git a/build/bin/find-hive-dependency.sh b/build/bin/find-hive-dependency.sh
index 5b748fc..067a852 100644
--- a/build/bin/find-hive-dependency.sh
+++ b/build/bin/find-hive-dependency.sh
@@ -16,12 +16,19 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
-
+dir=$(dirname ${0})
+source ${dir}/check-env.sh
 client_mode=`sh ${KYLIN_HOME}/bin/get-properties.sh kylin.hive.client`
 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
@@ -60,7 +67,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
 


Mime
View raw message