From 58d49cecd5be7474e0d83fd600fb1eb6f88389dc Mon Sep 17 00:00:00 2001 From: Jonathan Turner Eagles Date: Wed, 9 Apr 2014 16:20:26 +0000 Subject: [PATCH] HDFS-6215. Wrong error message for upgrade. (Kihwal Lee via jeagles) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1586011 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ .../java/org/apache/hadoop/hdfs/server/namenode/FSImage.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index b76918d951c..c7e9956dd40 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -332,6 +332,8 @@ Release 2.4.1 - UNRELEASED IMPROVEMENTS + HDFS-6215. Wrong error message for upgrade. (Kihwal Lee via jeagles) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java index e39bfb88bf4..b4f22772a53 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java @@ -229,7 +229,8 @@ public class FSImage implements Closeable { + RollingUpgradeStartupOption.STARTED.getOptionString() + "\" option if a rolling upgraded is already started;" + " or restart NameNode with the \"" - + StartupOption.UPGRADE + "\" to start a new upgrade."); + + StartupOption.UPGRADE.getName() + "\" option to start" + + " a new upgrade."); } storage.processStartupOptionsForUpgrade(startOpt, layoutVersion);