kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liy...@apache.org
Subject [10/17] kylin git commit: KYLIN-2572 Kylin failed to start because of parsing 'hcatalog_home' error in 'find-hive-dependency.sh'
Date Mon, 01 May 2017 12:55:45 GMT
KYLIN-2572 Kylin failed to start because of parsing 'hcatalog_home' error in 'find-hive-dependency.sh'

Signed-off-by: Yang Li <liyang@apache.org>


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

Branch: refs/heads/2.0.x-hbase0.98
Commit: 142b618fbcb32fe17304ff0de6a6c8fed02270ea
Parents: 2cea072
Author: peng.jianhua <peng.jianhua@zte.com.cn>
Authored: Thu Apr 27 17:19:40 2017 +0800
Committer: Yang Li <liyang@apache.org>
Committed: Sat Apr 29 07:23:07 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/kylin/blob/142b618f/build/bin/find-hive-dependency.sh
----------------------------------------------------------------------
diff --git a/build/bin/find-hive-dependency.sh b/build/bin/find-hive-dependency.sh
index aa39da0..25e26d2 100644
--- a/build/bin/find-hive-dependency.sh
+++ b/build/bin/find-hive-dependency.sh
@@ -71,8 +71,8 @@ fi
 if [ -z "$HCAT_HOME" ]
 then
     verbose "HCAT_HOME not found, try to find hcatalog path from hadoop home"
-    hadoop_home=`echo $hive_exec_path | awk -F '/hive.*/lib/' '{print $1}'`
-    hive_home=`echo $hive_exec_path | awk -F '/lib/' '{print $1}'`
+    hadoop_home=`echo $hive_exec_path | awk -F '/hive.*/lib/hive-exec[a-z0-9A-Z.-]*.jar'
'{print $1}'`
+    hive_home=`echo $hive_exec_path | awk -F '/lib/hive-exec[a-z0-9A-Z.-]*.jar' '{print $1}'`
     is_aws=`uname -r | grep amzn`
     if [ -d "${hadoop_home}/hive-hcatalog" ]; then
       hcatalog_home=${hadoop_home}/hive-hcatalog


Mime
View raw message