kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liy...@apache.org
Subject [44/50] [abbrv] kylin git commit: KYLIN-1515 find hcat path on mapr
Date Sun, 08 May 2016 13:30:11 GMT
KYLIN-1515 find hcat path on mapr

Signed-off-by: Li Yang <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/824a3355
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/824a3355
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/824a3355

Branch: refs/heads/1.5.x-HBase1.x
Commit: 824a33551ae19c43ab8ab4dc8c3546891ede9c93
Parents: ca118ba
Author: Roger Shi <roger@kyligence.io>
Authored: Fri May 6 11:00:09 2016 +0800
Committer: Li Yang <liyang@apache.org>
Committed: Fri May 6 12:03:54 2016 +0800

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


http://git-wip-us.apache.org/repos/asf/kylin/blob/824a3355/build/bin/find-hive-dependency.sh
----------------------------------------------------------------------
diff --git a/build/bin/find-hive-dependency.sh b/build/bin/find-hive-dependency.sh
index 1650ec0..576d06d 100644
--- a/build/bin/find-hive-dependency.sh
+++ b/build/bin/find-hive-dependency.sh
@@ -69,10 +69,13 @@ if [ -z "$HCAT_HOME" ]
 then
     echo "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}'`
     if [ -d "${hadoop_home}/hive-hcatalog" ]; then
       hcatalog_home=${hadoop_home}/hive-hcatalog
     elif [ -d "${hadoop_home}/hive/hcatalog" ]; then
       hcatalog_home=${hadoop_home}/hive/hcatalog
+    elif [ -d "${hive_home}/hcatalog" ]; then
+      hcatalog_home=${hive_home}/hcatalog
     else 
       echo "Couldn't locate hcatalog installation, please make sure it is installed and set
HCAT_HOME to the path."
       exit 1


Mime
View raw message