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/05/15 07:23:44 UTC
[2/3] 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/2439b9b5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/2439b9b5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/2439b9b5
Branch: refs/heads/0.7.1-staging
Commit: 2439b9b5289d6c1cefe6dd49fc3403b2d1644ff6
Parents: 6cded03
Author: Shao Feng, Shi <sh...@ebay.com>
Authored: Thu May 14 10:32:59 2015 +0800
Committer: Shao Feng, Shi <sh...@ebay.com>
Committed: Thu May 14 10:32:59 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/2439b9b5/bin/find-hive-dependency.sh
----------------------------------------------------------------------
diff --git a/bin/find-hive-dependency.sh b/bin/find-hive-dependency.sh
index 4adf739..0348c9c 100644
--- a/bin/find-hive-dependency.sh
+++ b/bin/find-hive-dependency.sh
@@ -39,6 +39,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
@@ -46,6 +47,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