You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by na...@apache.org on 2014/08/13 07:57:05 UTC
svn commit: r1617663 - /hive/trunk/bin/hive
Author: navis
Date: Wed Aug 13 05:57:05 2014
New Revision: 1617663
URL: http://svn.apache.org/r1617663
Log:
HIVE-7658 : Hive search order for hive-site.xml when using --config option (Venki Korukanti via Navis)
Modified:
hive/trunk/bin/hive
Modified: hive/trunk/bin/hive
URL: http://svn.apache.org/viewvc/hive/trunk/bin/hive?rev=1617663&r1=1617662&r2=1617663&view=diff
==============================================================================
--- hive/trunk/bin/hive (original)
+++ hive/trunk/bin/hive Wed Aug 13 05:57:05 2014
@@ -149,7 +149,11 @@ fi
export HADOOP_HOME_WARN_SUPPRESS=true
# pass classpath to hadoop
-export HADOOP_CLASSPATH="${HADOOP_CLASSPATH}:${CLASSPATH}"
+if [ "$HADOOP_CLASSPATH" != "" ]; then
+ export HADOOP_CLASSPATH="${HADOOP_CLASSPATH}:${CLASSPATH}"
+else
+ export HADOOP_CLASSPATH="$CLASSPATH"
+fi
# also pass hive classpath to hadoop
if [ "$HIVE_CLASSPATH" != "" ]; then