5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-02 03:20:31 +08:00

SQOOP-2145: Default Hive home is not being set properly under certain circumstances

(Mark Grover via Jarek Jarcec Cecho)
This commit is contained in:
Jarek Jarcec Cecho 2015-02-28 08:39:31 -08:00
parent eeb71085ae
commit d408252086

View File

@ -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