Index: bin/hive-config.sh =================================================================== --- bin/hive-config.sh (revision 1299754) +++ bin/hive-config.sh (working copy) @@ -34,8 +34,10 @@ 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 . . .