From e9eaad0e677f38018572db4a3e9adc9f4e8519a5 Mon Sep 17 00:00:00 2001 From: Mingliang Liu Date: Mon, 15 Aug 2016 20:23:47 -0700 Subject: [PATCH] HDFS-10747. o.a.h.hdfs.tools.DebugAdmin usage message is misleading. (Contributed by Mingliang Liu) --- .../main/java/org/apache/hadoop/hdfs/tools/DebugAdmin.java | 4 ++-- .../hadoop-hdfs/src/site/markdown/HDFSCommands.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DebugAdmin.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DebugAdmin.java index d179a5cf831..a2b91abcc0a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DebugAdmin.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DebugAdmin.java @@ -86,7 +86,7 @@ public class DebugAdmin extends Configured implements Tool { private class VerifyBlockChecksumCommand extends DebugCommand { VerifyBlockChecksumCommand() { super("verify", -"verify [-meta ] [-block ]", +"verify -meta [-block ]", " Verify HDFS metadata and block files. If a block file is specified, we\n" + " will verify that the checksums in the metadata file match the block\n" + " file."); @@ -200,7 +200,7 @@ public class DebugAdmin extends Configured implements Tool { private class RecoverLeaseCommand extends DebugCommand { RecoverLeaseCommand() { super("recoverLease", -"recoverLease [-path ] [-retries ]", +"recoverLease -path [-retries ]", " Recover the lease on the specified path. The path must reside on an\n" + " HDFS filesystem. The default number of retries is 1."); } diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md index 5c3b337de63..fa2dae4b4bb 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md @@ -515,7 +515,7 @@ Useful commands to help administrators debug HDFS issues, like validating block ### `verify` -Usage: `hdfs debug verify [-meta ] [-block ]` +Usage: `hdfs debug verify -meta [-block ]` | COMMAND\_OPTION | Description | |:---- |:---- | @@ -526,7 +526,7 @@ Verify HDFS metadata and block files. If a block file is specified, we will veri ### `recoverLease` -Usage: `hdfs debug recoverLease [-path ] [-retries ]` +Usage: `hdfs debug recoverLease -path [-retries ]` | COMMAND\_OPTION | Description | |:---- |:---- |