Просмотр исходного кода

HADOOP-10531. hadoop-config.sh - bug in --hosts argument. Contributed by Sebastien Barrier.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1589531 13f79535-47bb-0310-9956-ffa450edef68
Andrew Wang 11 лет назад
Родитель
Сommit
69a90ff22f

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -81,6 +81,9 @@ Release 2.5.0 - UNRELEASED
     HADOOP-10251. Both NameNodes could be in STANDBY State if SNN network is unstable
     (Vinayakumar B via umamahesh)
 
+    HADOOP-10531. hadoop-config.sh - bug in --hosts argument.
+    (Sebastien Barrier via wang)
+
 Release 2.4.1 - UNRELEASED
 
   INCOMPATIBLE CHANGES

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/bin/hadoop-config.sh

@@ -93,7 +93,7 @@ then
     if [ "--hosts" = "$1" ]
     then
         shift
-        export HADOOP_SLAVES="${HADOOP_CONF_DIR}/$$1"
+        export HADOOP_SLAVES="${HADOOP_CONF_DIR}/$1"
         shift
     elif [ "--hostnames" = "$1" ]
     then