Permalink
Browse files

Fixing bug with null HADOOP_OVERRIDE

  • Loading branch information...
1 parent bfe5275 commit 2566c93199302b140ba6223afd25b7c989da68f0 @khorgath khorgath committed Feb 17, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 bin/hive
View
@@ -149,10 +149,11 @@ if [ "$HADOOP_HOME" == "" ]; then
exit 4;
fi
-if [ -f ${HADOOP_OVERRIDE} ]; then
- HADOOP=$HADOOP_OVERRIDE
-else
- HADOOP=$HADOOP_HOME/bin/hadoop
+HADOOP=$HADOOP_HOME/bin/hadoop
+if [ "x$HADOOP_OVERRIDE" != "x" ]; then
+ if [ -f ${HADOOP_OVERRIDE} ]; then
+ HADOOP=$HADOOP_OVERRIDE
+ fi
fi
if [ ! -f ${HADOOP} ]; then

0 comments on commit 2566c93

Please sign in to comment.