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

shaofengshi pushed a commit to branch 3.0.x-hadoop3.1
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/3.0.x-hadoop3.1 by this push:
     new 657016d  Add considerations for hbase-shad-client -*.jar
657016d is described below

commit 657016de45902ccb36275de4ba44abdde41b3fbd
Author: gitlbo <42985677+git...@users.noreply.github.com>
AuthorDate: Wed May 20 10:45:04 2020 +0800

    Add considerations for hbase-shad-client -*.jar
    
    When work with HBase 2.1, this script returns "hbase-common lib not found",
    because the output of this command hbase classpath does not contain 
hbase-common-*.jar but hbase-shaded-client-*.jar
---
 build/bin/find-hbase-dependency.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/bin/find-hbase-dependency.sh 
b/build/bin/find-hbase-dependency.sh
index 299b2d7..5d317ed 100755
--- a/build/bin/find-hbase-dependency.sh
+++ b/build/bin/find-hbase-dependency.sh
@@ -36,7 +36,7 @@ arr=(`echo $hbase_classpath | cut -d ":" -f 1- | sed 's/:/ 
/g'`)
 hbase_common_path=
 for data in ${arr[@]}
 do
-    result=`echo $data | grep -e 'hbase-common[a-z0-9A-Z\.-]*jar' | grep -v 
tests`
+    result=`echo $data | grep -e 
'hbase-[common,shaded\-client][a-z0-9A-Z\.-]*jar' | grep -v tests`
     if [ $result ]
     then
         hbase_common_path=$data

Reply via email to