Browse Source

HDFS-16282. Remove duplicate generic usage information to hdfs debug command (#3576). Contributed by daimin.

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
daimin 3 years ago
parent
commit
847cff7d91

+ 2 - 2
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DebugAdmin.java

@@ -459,9 +459,9 @@ public class DebugAdmin extends Configured implements Tool {
       if (!command.name.equals("help")) {
         System.out.println(command.usageText);
       }
-      System.out.println();
-      ToolRunner.printGenericCommandUsage(System.out);
     }
+    System.out.println();
+    ToolRunner.printGenericCommandUsage(System.out);
   }
 
   public static void main(String[] argsArray) throws Exception {