Author: sershe
Date: Tue Mar 11 18:10:52 2014
New Revision: 1576447
URL: http://svn.apache.org/r1576447
Log:
HIVE-6587 : allow specifying additional Hive classpath for Hadoop (Sergey
Shelukhin, reviewed by Gunther Hagleitner)
Modified:
hive/branches/branch-0.13/bin/hive
Modified: hive/branches/branch-0.13/bin/hive
URL:
http://svn.apache.org/viewvc/hive/branches/branch-0.13/bin/hive?rev=1576447&r1=1576446&r2=1576447&view=diff
==============================================================================
--- hive/branches/branch-0.13/bin/hive (original)
+++ hive/branches/branch-0.13/bin/hive Tue Mar 11 18:10:52 2014
@@ -151,6 +151,11 @@ export HADOOP_HOME_WARN_SUPPRESS=true
# pass classpath to hadoop
export HADOOP_CLASSPATH="${HADOOP_CLASSPATH}:${CLASSPATH}"
+# also pass hive classpath to hadoop
+if [ "$HIVE_CLASSPATH" != "" ]; then
+ export HADOOP_CLASSPATH="${HADOOP_CLASSPATH}:${HIVE_CLASSPATH}";
+fi
+
# check for hadoop in the path
HADOOP_IN_PATH=`which hadoop 2>/dev/null`
if [ -f ${HADOOP_IN_PATH} ]; then