You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ek...@apache.org on 2015/07/01 00:11:56 UTC
hive git commit: HIVE-11140 auto compute PROJ_HOME in
hcatalog/src/test/e2e/templeton/deployers/env.sh (Eugene Koifman,
reviewed by Thejas Nair)
Repository: hive
Updated Branches:
refs/heads/master 994d98c09 -> ffce22589
HIVE-11140 auto compute PROJ_HOME in hcatalog/src/test/e2e/templeton/deployers/env.sh (Eugene Koifman, reviewed by Thejas Nair)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/ffce2258
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/ffce2258
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/ffce2258
Branch: refs/heads/master
Commit: ffce225896d73ac0af1af4afb9d5bef53699ab37
Parents: 994d98c
Author: Eugene Koifman <ek...@hortonworks.com>
Authored: Tue Jun 30 15:11:43 2015 -0700
Committer: Eugene Koifman <ek...@hortonworks.com>
Committed: Tue Jun 30 15:11:43 2015 -0700
----------------------------------------------------------------------
hcatalog/src/test/e2e/templeton/deployers/env.sh | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/ffce2258/hcatalog/src/test/e2e/templeton/deployers/env.sh
----------------------------------------------------------------------
diff --git a/hcatalog/src/test/e2e/templeton/deployers/env.sh b/hcatalog/src/test/e2e/templeton/deployers/env.sh
index 8b719f2..804bdd4 100755
--- a/hcatalog/src/test/e2e/templeton/deployers/env.sh
+++ b/hcatalog/src/test/e2e/templeton/deployers/env.sh
@@ -42,9 +42,8 @@ if [ -z ${TEZ_VERSION} ]; then
fi
#Root of project source tree
-if [ -z ${PROJ_HOME} ]; then
- export PROJ_HOME=/Users/${USER}/dev/hive
-fi
+current_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../../../../.. && pwd )
+export PROJ_HOME=`dirname $current_dir`
export HIVE_HOME=${PROJ_HOME}/packaging/target/apache-hive-${HIVE_VERSION}-bin/apache-hive-${HIVE_VERSION}-bin
if [ -z ${HADOOP_HOME} ]; then