From c183f235f1ae94d5b890bf010f7c9b7fa8cf92d2 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Fri, 19 Feb 2016 01:35:06 +0900 Subject: [PATCH] HDFS-6832. Fix the usage of 'hdfs namenode' command. Contributed by Manjunath Ballur. (cherry picked from commit e78d8e66f748c68d2d88ee748facbfa35817d5e3) --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../java/org/apache/hadoop/hdfs/server/namenode/NameNode.java | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 5db39001211..9e34866b293 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1861,6 +1861,9 @@ Release 2.8.0 - UNRELEASED HDFS-9799. Reimplement getCurrentTrashDir to remove incompatibility. (zhz) + HDFS-6832. Fix the usage of 'hdfs namenode' command. + (Manjunath Ballur via aajisaka) + Release 2.7.3 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java index 9b41a56526d..fde8b4acd95 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java @@ -282,8 +282,7 @@ public class NameNode implements NameNodeStatusMXBean { + StartupOption.BOOTSTRAPSTANDBY.getName() + "] | \n\t[" + StartupOption.RECOVER.getName() + " [ " + StartupOption.FORCE.getName() + "] ] | \n\t[" - + StartupOption.METADATAVERSION.getName() + " ] " - + " ]"; + + StartupOption.METADATAVERSION.getName() + " ]"; public long getProtocolVersion(String protocol,