You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2012/03/16 23:21:05 UTC

svn commit: r1301797 - /hive/trunk/bin/hive-config.sh

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