You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/10/12 04:44:44 UTC

incubator-kylin git commit: minor, fix find-hive-dependency.sh to search in hive home only

Repository: incubator-kylin
Updated Branches:
  refs/heads/2.x-staging b5ea13ab7 -> e6eb9b363


minor, fix find-hive-dependency.sh to search in hive home only


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

Branch: refs/heads/2.x-staging
Commit: e6eb9b363915a2e4800685a6140fb6b2095f8241
Parents: b5ea13a
Author: Li, Yang <ya...@ebay.com>
Authored: Mon Oct 12 10:43:40 2015 +0800
Committer: Li, Yang <ya...@ebay.com>
Committed: Mon Oct 12 10:44:15 2015 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/e6eb9b36/build/bin/find-hive-dependency.sh
----------------------------------------------------------------------
diff --git a/build/bin/find-hive-dependency.sh b/build/bin/find-hive-dependency.sh
index 77573a8..98d0860 100644
--- a/build/bin/find-hive-dependency.sh
+++ b/build/bin/find-hive-dependency.sh
@@ -19,9 +19,9 @@ do
         hive_conf_path=$data
     fi
 done
-hdp_home=`echo $hive_exec_path | awk -F '/hive.*/lib/' '{print $1}'`
+hive_home=`echo $hive_exec_path | awk -F '/lib/' '{print $1}'`/
 
-hcatalog=`find $hdp_home -name "hive-hcatalog-core[0-9\.-]*jar" 2>&1 | grep -m 1 -v 'Permission denied'`
+hcatalog=`find $hive_home -name "hive-hcatalog-core[0-9\.-]*jar" 2>&1 | grep -m 1 -v 'Permission denied'`
 hive_lib=`find "$(dirname $hive_exec_path)" -name '*.jar' ! -name '*calcite*' -printf '%p:' | sed 's/:$//'`
 
 if [ -z "$hcatalog" ]