From b650e61a7f5bd27be850b4ec940516571b4c6b3d Mon Sep 17 00:00:00 2001 From: Allen Wittenauer Date: Thu, 13 Nov 2014 12:01:38 -0800 Subject: [PATCH] HADOOP-11298. slaves.sh and stop-all.sh are missing slashes (aw) --- hadoop-common-project/hadoop-common/CHANGES.txt | 2 ++ hadoop-common-project/hadoop-common/src/main/bin/slaves.sh | 2 +- hadoop-common-project/hadoop-common/src/main/bin/stop-all.sh | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index d77d0244917..f3a02377d9a 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/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) diff --git a/hadoop-common-project/hadoop-common/src/main/bin/slaves.sh b/hadoop-common-project/hadoop-common/src/main/bin/slaves.sh index 0ffb4849cfb..a8f066063dd 100755 --- a/hadoop-common-project/hadoop-common/src/main/bin/slaves.sh +++ b/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 diff --git a/hadoop-common-project/hadoop-common/src/main/bin/stop-all.sh b/hadoop-common-project/hadoop-common/src/main/bin/stop-all.sh index a0311e482ef..55424d84ba5 100755 --- a/hadoop-common-project/hadoop-common/src/main/bin/stop-all.sh +++ b/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