Permalink
Browse files

Modifying hive launch script to allow for a HADOOP_OVERRIDE specifica…

…tion
  • Loading branch information...
1 parent 51066b5 commit bfe5275214ab4ab4211835c0067ec3e6dafa202b @khorgath khorgath committed Feb 15, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 bin/hive
View
@@ -149,7 +149,12 @@ if [ "$HADOOP_HOME" == "" ]; then
exit 4;
fi
-HADOOP=$HADOOP_HOME/bin/hadoop
+if [ -f ${HADOOP_OVERRIDE} ]; then
+ HADOOP=$HADOOP_OVERRIDE
+else
+ HADOOP=$HADOOP_HOME/bin/hadoop
+fi
+
if [ ! -f ${HADOOP} ]; then
echo "Cannot find hadoop installation: \$HADOOP_HOME must be set or hadoop must be in the path";
exit 4;

0 comments on commit bfe5275

Please sign in to comment.