This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/master by this push:
     new bcf1b52  KYLIN-3799 Fix wrong hive-exec jar may be found by 
find-hive-dependency.sh on CDH
bcf1b52 is described below

commit bcf1b5237bf25116cbcb393bb8e12f42c8306600
Author: nichunen <chunen...@kyligence.io>
AuthorDate: Wed Jan 30 14:58:39 2019 +0800

    KYLIN-3799 Fix wrong hive-exec jar may be found by find-hive-dependency.sh 
on CDH
---
 build/bin/find-hive-dependency.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/build/bin/find-hive-dependency.sh 
b/build/bin/find-hive-dependency.sh
index 558c9b5..17258a0 100755
--- a/build/bin/find-hive-dependency.sh
+++ b/build/bin/find-hive-dependency.sh
@@ -61,7 +61,7 @@ fi
 
 for data in ${arr[@]}
 do
-    result=`echo $data | grep -e 'hive-exec[a-z0-9A-Z\.-]*.jar'`
+    result=`echo $data | grep -e 'hive-exec[a-z0-9A-Z\.-]*.jar' | grep -v 
'auxlib'`
     # In some cases there are more than one lib dirs, only the first one will 
be applied.
     if [ $result ] && [ -z "$hive_exec_path" ]
     then
@@ -189,6 +189,12 @@ then
         quit "HIVE_LIB not found, please check hive installation or export 
HIVE_LIB='YOUR_LOCAL_HIVE_LIB'."
     fi
 else
+    if [[ $HIVE_LIB =~ ^\/.*hive.*\/lib[\/]* ]]
+    then
+        verbose "HIVE_LIB is set to ${HIVE_LIB}"
+    else
+        echo "WARNING: HIVE_LIB is set to ${HIVE_LIB}, it's advised to set it 
to the lib dir under hive's installation directory"
+    fi
     hive_lib_dir="$HIVE_LIB"
 fi
 hive_lib=`find -L ${hive_lib_dir} -name '*.jar' ! -name '*druid*' ! -name 
'*slf4j*' ! -name '*avatica*' ! -name '*calcite*' ! -name 
'*jackson-datatype-joda*' ! -name '*derby*' -printf '%p:' | sed 's/:$//'`

Reply via email to