hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject svn commit: r1301797 - /hive/trunk/bin/hive-config.sh
Date Fri, 16 Mar 2012 22:21:05 GMT
Author: hashutosh
Date: Fri Mar 16 22:21:04 2012
New Revision: 1301797

URL: http://svn.apache.org/viewvc?rev=1301797&view=rev
Log:
HIVE-2865 : hive-config.sh should honor HIVE_HOME env (gkesvan via hashutosh)

Modified:
    hive/trunk/bin/hive-config.sh

Modified: hive/trunk/bin/hive-config.sh
URL: http://svn.apache.org/viewvc/hive/trunk/bin/hive-config.sh?rev=1301797&r1=1301796&r2=1301797&view=diff
==============================================================================
--- hive/trunk/bin/hive-config.sh (original)
+++ hive/trunk/bin/hive-config.sh Fri Mar 16 22:21:04 2012
@@ -34,8 +34,10 @@ script=`basename "$this"`
 bin=`cd "$bin"; pwd`
 this="$bin/$script"
 
-# the root of the Hadoop installation
-export HIVE_HOME=`dirname "$bin"`
+# the root of the Hive installation
+if [[ -z $HIVE_HOME ]] ; then
+  export HIVE_HOME=`dirname "$bin"`
+fi
 
 #check to see if the conf dir is given as an optional argument
 while [ $# -gt 0 ]; do    # Until you run out of parameters . . .



Mime
View raw message