Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

avoid 'No HADOOP_CONF_DIR set' warnings

  • Loading branch information...
commit 3ce4266986fc9f32456f691723e87d5a678bbaf8 1 parent 0bf29fe
@ekoontz authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 bin/giraph
View
8 bin/giraph
@@ -109,6 +109,10 @@ if [ "$HADOOP_HOME" = "" ] ; then
exit 1
fi
+#avoid 'HADOOP_HOME is deprecated' warnings from Hadoop (1.0 and above).
+HADOOP_CONF_DIR=$HADOOP_HOME/conf
+HADOOP_TMP=$HADOOP_HOME
+unset HADOOP_HOME
if [ "$HADOOP_CONF_DIR" = "" ] ; then
HADOOP_CONF_DIR=$HADOOP_HOME/conf
@@ -120,8 +124,4 @@ fi
# Giraph's jars to add to distributed cache via -libjar, which are csv rather than :sv
GIRAPH_JARS=`echo ${JAR}:${CLASSPATH}|sed s/:/,/g`
export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$CLASSPATH
-#avoid 'HADOOP_HOME is deprecated' warnings from Hadoop (1.0 and above).
-HADOOP_CONF_DIR=$HADOOP_HOME/conf
-HADOOP_TMP=$HADOOP_HOME
-unset HADOOP_HOME
HADOOP_CONF_DIR=$HADOOP_CONF_DIR exec "$HADOOP_TMP/bin/hadoop" --config $HADOOP_CONF_DIR jar $JAR $CLASS $HADOOP_PROPERTIES -libjars $GIRAPH_JARS "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.