KYLIN-2572 Kylin failed to start because of parsing 'hcatalog_home' error in 
'find-hive-dependency.sh'

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


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

Branch: refs/heads/2.0.x
Commit: 6dd5e37fff35f6d032dbdd14b16fd3f9f1f71dc7
Parents: 775bd29
Author: peng.jianhua <peng.jian...@zte.com.cn>
Authored: Thu Apr 27 17:19:40 2017 +0800
Committer: Roger Shi <rogershijich...@hotmail.com>
Committed: Wed May 10 18:59:05 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/6dd5e37f/build/bin/find-hive-dependency.sh
----------------------------------------------------------------------
diff --git a/build/bin/find-hive-dependency.sh 
b/build/bin/find-hive-dependency.sh
index 72cb958..ccf33b2 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

Reply via email to