|
@@ -38,7 +38,11 @@ fi
|
|
bin=`dirname "$0"`
|
|
bin=`dirname "$0"`
|
|
bin=`cd "$bin"; pwd`
|
|
bin=`cd "$bin"; pwd`
|
|
|
|
|
|
-. "$bin"/../libexec/hadoop-config.sh
|
|
|
|
|
|
+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
|