From 82623ea9c9a95af64a23aca2bda61f4da65fde31 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 @@ private abstract class DebugCommand { 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 @@ int run(List args) throws IOException { 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 c224ba110ac..e54c1130f6b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md @@ -556,7 +556,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 | |:---- |:---- | @@ -567,7 +567,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 | |:---- |:---- |