You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by se...@apache.org on 2014/03/11 18:55:31 UTC

svn commit: r1576441 - /hive/trunk/bin/hive

Author: sershe
Date: Tue Mar 11 17:55:31 2014
New Revision: 1576441

URL: http://svn.apache.org/r1576441
Log:
HIVE-6587 : allow specifying additional Hive classpath for Hadoop (Sergey Shelukhin, reviewed by Gunther Hagleitner

Modified:
    hive/trunk/bin/hive

Modified: hive/trunk/bin/hive
URL: http://svn.apache.org/viewvc/hive/trunk/bin/hive?rev=1576441&r1=1576440&r2=1576441&view=diff
==============================================================================
--- hive/trunk/bin/hive (original)
+++ hive/trunk/bin/hive Tue Mar 11 17:55:31 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