hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhe Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10172) hdfs erasurecode command should remove the redundant -usage option
Date Tue, 12 Apr 2016 21:55:25 GMT

    [ https://issues.apache.org/jira/browse/HDFS-10172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15238063#comment-15238063
] 

Zhe Zhang commented on HDFS-10172:
----------------------------------

Thanks Wei-Chiu for reporting the issue and Yuanbo for the fix.

Looks like we should override {{FsShell#init}}? Since that's the place adding the usage option.

> hdfs erasurecode command should remove the redundant -usage option
> ------------------------------------------------------------------
>
>                 Key: HDFS-10172
>                 URL: https://issues.apache.org/jira/browse/HDFS-10172
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: erasure-coding
>    Affects Versions: 3.0.0
>            Reporter: Wei-Chiu Chuang
>            Assignee: Yuanbo Liu
>            Priority: Minor
>              Labels: newbie
>         Attachments: HDFS-10172.001.patch
>
>
> {{hdfs erasurecode}} has two similar options {{-help}} and {{-usage}}.
> {noformat}
> hdfs erasurecode -usage getPolicy
> Usage: hdfs erasurecode [generic options] -getPolicy <path>
> hdfs erasurecode -help getPolicy
> -getPolicy <path> :
>   Get erasure coding policy information about at specified path
> {noformat}
> I don't think the -usage option is that useful, because -help option already covers that.
No other HDFS commands has the same -usage command.



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

Mime
View raw message