hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingliang Liu (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (HDFS-10747) o.a.h.hdfs.tools.DebugAdmin usage message is misleading
Date Tue, 16 Aug 2016 04:12:22 GMT

     [ https://issues.apache.org/jira/browse/HDFS-10747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mingliang Liu updated HDFS-10747:
---------------------------------
    Comment: was deleted

(was: Thanks for the review, [~jojochuang].)

> o.a.h.hdfs.tools.DebugAdmin usage message is misleading
> -------------------------------------------------------
>
>                 Key: HDFS-10747
>                 URL: https://issues.apache.org/jira/browse/HDFS-10747
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 2.7.0
>            Reporter: Mingliang Liu
>            Assignee: Mingliang Liu
>            Priority: Minor
>             Fix For: 2.7.4
>
>         Attachments: HDFS-10747.000.patch
>
>
> [HDFS-6917] added a helpful hdfs debug command to validate blocks and call recoverlease.
The usage doc is kinda misleading, as following:
> {code}
> $ hdfs debug verify
> creating a new configuration
> verify [-meta <metadata-file>] [-block <block-file>]
>   Verify HDFS metadata and block files.  If a block file is specified, we
>   will verify that the checksums in the metadata file match the block
>   file.
> {code}
> Actually the {{-meta <metadata-file>}} is necessary. {{[]}} is for optional arguments,
if we follow the [convention|http://pubs.opengroup.org/onlinepubs/9699919799].
> {code}
> $ hdfs debug recoverLease
> creating a new configuration
> recoverLease [-path <path>] [-retries <num-retries>]
>   Recover the lease on the specified path.  The path must reside on an
>   HDFS filesystem.  The default number of retries is 1.
> {code}
> {{-path <path>}} is also the same case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message