Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modifying hive launch script to allow for a HADOOP_OVERRIDE specifica…

…tion
  • Loading branch information...
commit bfe5275214ab4ab4211835c0067ec3e6dafa202b 1 parent 51066b5
@khorgath khorgath authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 bin/hive
View
7 bin/hive
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.