From 66988476d09a6d04c0b81a663db1e6e5a28c37fb Mon Sep 17 00:00:00 2001 From: Vinayakumar B Date: Fri, 8 May 2015 10:45:21 +0530 Subject: [PATCH] HDFS-8067. haadmin prints out stale help messages (Contributed by Ajith S) --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ .../src/main/java/org/apache/hadoop/hdfs/tools/DFSHAAdmin.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 4fcf524b3f..b9443b4edc 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -654,6 +654,8 @@ Release 2.8.0 - UNRELEASED HDFS-8257. Namenode rollingUpgrade option is incorrect in document (J.Andreina via vinayakumarb) + HDFS-8067. haadmin prints out stale help messages (Ajith S via vinayakumarb) + Release 2.7.1 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSHAAdmin.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSHAAdmin.java index aa69dca699..4c0ddb2985 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSHAAdmin.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSHAAdmin.java @@ -90,7 +90,7 @@ public class DFSHAAdmin extends HAAdmin { @Override protected String getUsageString() { - return "Usage: haadmin"; + return "Usage: haadmin [-ns ]"; } @Override