Browse Source

HADOOP-11298. slaves.sh and stop-all.sh are missing slashes (aw)

Allen Wittenauer 10 năm trước cách đây
mục cha
commit
b650e61a7f

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

@@ -343,6 +343,8 @@ Trunk (Unreleased)
     HADOOP-11284. Fix variable name mismatches in hadoop-functions.sh (Masatake
     Iwasaki via aw)
 
+    HADOOP-11298. slaves.sh and stop-all.sh are missing slashes (aw)
+
   OPTIMIZATIONS
 
     HADOOP-7761. Improve the performance of raw comparisons. (todd)

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

@@ -36,7 +36,7 @@ if [[ -n "${HADOOP_PREFIX}" ]]; then
   DEFAULT_LIBEXEC_DIR="${HADOOP_PREFIX}/libexec"
 else
   this="${BASH_SOURCE-$0}"
-  bin=$(cd -P -- "$(dirname -- "${this}")" >dev/null && pwd -P)
+  bin=$(cd -P -- "$(dirname -- "${this}")" >/dev/null && pwd -P)
   DEFAULT_LIBEXEC_DIR="${bin}/../libexec"
 fi
 

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

@@ -26,7 +26,7 @@ if [[ -n "${HADOOP_PREFIX}" ]]; then
   DEFAULT_LIBEXEC_DIR="${HADOOP_PREFIX}/libexec"
 else
   this="${BASH_SOURCE-$0}"
-  bin=$(cd -P -- "$(dirname -- "${this}")" >dev/null && pwd -P)
+  bin=$(cd -P -- "$(dirname -- "${this}")" >/dev/null && pwd -P)
   DEFAULT_LIBEXEC_DIR="${bin}/../libexec"
 fi