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);