From b1603b44c57bec3ef364e8e067115e5cb06c4842 Mon Sep 17 00:00:00 2001 From: Suresh Srinivas Date: Fri, 10 May 2013 20:23:24 +0000 Subject: [PATCH] HDFS-4533. start-dfs.sh ignores additional parameters besides -upgrade. Contributed by Fengdong Yu. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1481178 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ hadoop-hdfs-project/hadoop-hdfs/src/main/bin/start-dfs.sh | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index c1d9f0d15a..95046095e5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -986,6 +986,9 @@ Release 2.0.5-beta - UNRELEASED HDFS-4751. TestLeaseRenewer#testThreadName flakes. (Andrew Wang via atm) + HDFS-4533. start-dfs.sh ignores additional parameters besides -upgrade. + (Fengdong Yu via suresh) + Release 2.0.4-alpha - 2013-04-25 INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/start-dfs.sh b/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/start-dfs.sh index 41eddff4b0..fb4edd069f 100755 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/start-dfs.sh +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/bin/start-dfs.sh @@ -20,7 +20,7 @@ # Optinally upgrade or rollback dfs state. # Run this on master node. -usage="Usage: start-dfs.sh [-upgrade|-rollback]" +usage="Usage: start-dfs.sh [-upgrade|-rollback] [other options such as -clusterId]" bin=`dirname "${BASH_SOURCE-$0}"` bin=`cd "$bin"; pwd` @@ -46,6 +46,9 @@ if [ $# -ge 1 ]; then esac fi +#Add other possible options +nameStartOpt="$nameStartOpts $@" + #--------------------------------------------------------- # namenodes