|
@@ -38,21 +38,18 @@ fi
|
|
bin=`dirname "$0"`
|
|
bin=`dirname "$0"`
|
|
bin=`cd "$bin"; pwd`
|
|
bin=`cd "$bin"; pwd`
|
|
|
|
|
|
-if [ -e "$bin/../libexec/hadoop-config.sh" ]; then
|
|
|
|
- . "$bin"/../libexec/hadoop-config.sh
|
|
|
|
-else
|
|
|
|
- . "$bin/hadoop-config.sh"
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
# If the slaves file is specified in the command line,
|
|
# If the slaves file is specified in the command line,
|
|
# then it takes precedence over the definition in
|
|
# then it takes precedence over the definition in
|
|
# hadoop-env.sh. Save it here.
|
|
# hadoop-env.sh. Save it here.
|
|
HOSTLIST=$HADOOP_SLAVES
|
|
HOSTLIST=$HADOOP_SLAVES
|
|
|
|
|
|
-if [ -f "${HADOOP_CONF_DIR}/hadoop-env.sh" ]; then
|
|
|
|
- . "${HADOOP_CONF_DIR}/hadoop-env.sh"
|
|
|
|
|
|
+if [ -e "$bin/../libexec/hadoop-config.sh" ]; then
|
|
|
|
+ . "$bin"/../libexec/hadoop-config.sh
|
|
|
|
+else
|
|
|
|
+ . "$bin/hadoop-config.sh"
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+
|
|
if [ "$HOSTLIST" = "" ]; then
|
|
if [ "$HOSTLIST" = "" ]; then
|
|
if [ "$HADOOP_SLAVES" = "" ]; then
|
|
if [ "$HADOOP_SLAVES" = "" ]; then
|
|
export HOSTLIST="${HADOOP_CONF_DIR}/slaves"
|
|
export HOSTLIST="${HADOOP_CONF_DIR}/slaves"
|