You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2015/05/27 06:34:59 UTC

[34/50] [abbrv] incubator-kylin git commit: KYLIN-761 exclude calcite jars in find-hive-dependency.sh

KYLIN-761 exclude calcite jars in 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/7431c7e5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/7431c7e5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/7431c7e5

Branch: refs/heads/0.8.0
Commit: 7431c7e559008ff760128726fdaf87b30e44cf60
Parents: c484c20
Author: Shao Feng, Shi <sh...@ebay.com>
Authored: Thu May 14 10:32:59 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Wed May 27 12:24:38 2015 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/7431c7e5/bin/find-hive-dependency.sh
----------------------------------------------------------------------
diff --git a/bin/find-hive-dependency.sh b/bin/find-hive-dependency.sh
index f15e87e..70be75a 100644
--- a/bin/find-hive-dependency.sh
+++ b/bin/find-hive-dependency.sh
@@ -22,6 +22,7 @@ done
 hdp_home=`echo $hive_exec_path | awk -F '/hive/lib/' '{print $1}'`
 
 hcatalog=`find $hdp_home -name "hive-hcatalog-core[0-9\.-]*jar" 2>&1 | grep -m 1 -v 'Permission denied'`
+hive_lib=`find "$hdp_home/hive/lib" -name '*.jar' ! -name '*calcite*' -printf '%p:' | sed 's/:$//'`
 
 if [ -z "$hcatalog" ]
 then
@@ -29,6 +30,6 @@ then
     exit 1
 fi
 
-hive_dependency=${hive_conf_path}:${hdp_home}/hive/lib/*:${hcatalog}
+hive_dependency=${hive_conf_path}:${hive_lib}:${hcatalog}
 echo "hive dependency: $hive_dependency"
 export hive_dependency
\ No newline at end of file