You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sqoop.apache.org by ja...@apache.org on 2015/02/28 17:39:56 UTC
sqoop git commit: SQOOP-2145: Default Hive home is not being set
properly under certain circumstances
Repository: sqoop
Updated Branches:
refs/heads/trunk eeb71085a -> d40825208
SQOOP-2145: Default Hive home is not being set properly under certain circumstances
(Mark Grover via Jarek Jarcec Cecho)
Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/d4082520
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/d4082520
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/d4082520
Branch: refs/heads/trunk
Commit: d408252086d4351eac211cfc2203dc15c660ad31
Parents: eeb7108
Author: Jarek Jarcec Cecho <ja...@apache.org>
Authored: Sat Feb 28 08:39:31 2015 -0800
Committer: Jarek Jarcec Cecho <ja...@apache.org>
Committed: Sat Feb 28 08:39:31 2015 -0800
----------------------------------------------------------------------
bin/configure-sqoop | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/sqoop/blob/d4082520/bin/configure-sqoop
----------------------------------------------------------------------
diff --git a/bin/configure-sqoop b/bin/configure-sqoop
index 1a03190..3b801e4 100755
--- a/bin/configure-sqoop
+++ b/bin/configure-sqoop
@@ -105,6 +105,13 @@ if [ -z "${ZOOKEEPER_HOME}" ]; then
ZOOKEEPER_HOME=${SQOOP_HOME}/../zookeeper
fi
fi
+if [ -z "${HIVE_HOME}" ]; then
+ if [ -d "/usr/lib/hive" ]; then
+ export HIVE_HOME=/usr/lib/hive
+ elif [ -d ${SQOOP_HOME}/../hive ]; then
+ export HIVE_HOME=${SQOOP_HOME}/../hive
+ fi
+fi
# Check: If we can't find our dependencies, give up here.
if [ ! -d "${HADOOP_COMMON_HOME}" ]; then