HDFS-10747. o.a.h.hdfs.tools.DebugAdmin usage message is misleading. (Contributed by Mingliang Liu)

This commit is contained in:
Mingliang Liu 2016-08-15 20:23:47 -07:00
parent f9a7e59066
commit 82623ea9c9
2 changed files with 4 additions and 4 deletions

View File

@ -86,7 +86,7 @@ private abstract class DebugCommand {
private class VerifyBlockChecksumCommand extends DebugCommand {
VerifyBlockChecksumCommand() {
super("verify",
"verify [-meta <metadata-file>] [-block <block-file>]",
"verify -meta <metadata-file> [-block <block-file>]",
" 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<String> args) throws IOException {
private class RecoverLeaseCommand extends DebugCommand {
RecoverLeaseCommand() {
super("recoverLease",
"recoverLease [-path <path>] [-retries <num-retries>]",
"recoverLease -path <path> [-retries <num-retries>]",
" Recover the lease on the specified path. The path must reside on an\n" +
" HDFS filesystem. The default number of retries is 1.");
}

View File

@ -556,7 +556,7 @@ Useful commands to help administrators debug HDFS issues, like validating block
### `verify`
Usage: `hdfs debug verify [-meta <metadata-file>] [-block <block-file>]`
Usage: `hdfs debug verify -meta <metadata-file> [-block <block-file>]`
| 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 <path>] [-retries <num-retries>]`
Usage: `hdfs debug recoverLease -path <path> [-retries <num-retries>]`
| COMMAND\_OPTION | Description |
|:---- |:---- |