You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ma...@apache.org on 2015/12/01 09:51:59 UTC

[2/9] incubator-kylin git commit: more checks on find-hive-dependency.sh

more checks on find-hive-dependency.sh


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

Branch: refs/heads/KYLIN-242-new
Commit: 72bdce53126f7dc3661ebe27c2b3915d09faa27c
Parents: 623635d
Author: honma <ho...@ebay.com>
Authored: Mon Nov 23 13:25:05 2015 +0800
Committer: honma <ho...@ebay.com>
Committed: Mon Nov 30 11:32:46 2015 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/72bdce53/build/bin/find-hive-dependency.sh
----------------------------------------------------------------------
diff --git a/build/bin/find-hive-dependency.sh b/build/bin/find-hive-dependency.sh
index e2c8ffa..3d223bf 100644
--- a/build/bin/find-hive-dependency.sh
+++ b/build/bin/find-hive-dependency.sh
@@ -40,10 +40,10 @@ done
 # in some versions of hive hcatalog is not in hive's classpath, find it separately
 if [ -z "$HCAT_HOME" ]
 then
-    echo "HCAT_HOME not found, try to find hcatalog path from hive home"
-    hive_home=`echo $hive_exec_path | awk -F '/hive.*/lib/' '{print $1}'`
-    if [ -d "${hive_home}/hive-hcatalog" ]; then
-      hcatalog_home=${hive_home}/hive-hcatalog
+	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}'`
+    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
     else