Repository: kylin Updated Branches: refs/heads/master ca118ba06 -> 824a33551
KYLIN-1515 find hcat path on mapr Signed-off-by: Li Yang <liy...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/824a3355 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/824a3355 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/824a3355 Branch: refs/heads/master Commit: 824a33551ae19c43ab8ab4dc8c3546891ede9c93 Parents: ca118ba Author: Roger Shi <ro...@kyligence.io> Authored: Fri May 6 11:00:09 2016 +0800 Committer: Li Yang <liy...@apache.org> Committed: Fri May 6 12:03:54 2016 +0800 ---------------------------------------------------------------------- build/bin/find-hive-dependency.sh | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/824a3355/build/bin/find-hive-dependency.sh ---------------------------------------------------------------------- diff --git a/build/bin/find-hive-dependency.sh b/build/bin/find-hive-dependency.sh index 1650ec0..576d06d 100644 --- a/build/bin/find-hive-dependency.sh +++ b/build/bin/find-hive-dependency.sh @@ -69,10 +69,13 @@ if [ -z "$HCAT_HOME" ] then 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}'` + hive_home=`echo $hive_exec_path | awk -F '/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 + elif [ -d "${hive_home}/hcatalog" ]; then + hcatalog_home=${hive_home}/hcatalog else echo "Couldn't locate hcatalog installation, please make sure it is installed and set HCAT_HOME to the path." exit 1