minor, apply first found hive_lib_dir
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/8cd807f7 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/8cd807f7 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/8cd807f7 Branch: refs/heads/master Commit: 8cd807f778eeafbb54effb0dd1c7ab552e68c730 Parents: 11a0b57 Author: Cheng Wang <cheng.w...@kyligence.io> Authored: Mon May 22 17:03:45 2017 +0800 Committer: æ <cheng.w...@kyligence.io> Committed: Tue May 23 11:30:25 2017 +0800 ---------------------------------------------------------------------- build/bin/find-hive-dependency.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/8cd807f7/build/bin/find-hive-dependency.sh ---------------------------------------------------------------------- diff --git a/build/bin/find-hive-dependency.sh b/build/bin/find-hive-dependency.sh index 8ebdfbd..6f28fd1 100644 --- a/build/bin/find-hive-dependency.sh +++ b/build/bin/find-hive-dependency.sh @@ -46,7 +46,8 @@ fi for data in ${arr[@]} do result=`echo $data | grep -e 'hive-exec[a-z0-9A-Z\.-]*.jar'` - if [ $result ] + # In some cases there are more than one lib dirs, only the first one will be applied. + if [ $result ] && [ -z "$hive_exec_path" ] then hive_exec_path=$data fi