hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinayakumar B (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9125) Display help if the command option to "hdfs dfs " is not valid
Date Sat, 26 Sep 2015 12:10:04 GMT

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

Vinayakumar B commented on HDFS-9125:
-------------------------------------

Thanks [~nijel] for the patch.

You cannot change the usage from 'fs' to 'dfs'. Though it looks to be changed, since we are
calling FsShell by invoking 'hdfs dfs' from HDFS perspective, But FSShell is generic and any
other FileSystem can use this shell. Other file systems will call this by 'hadoop fs'. Actual
FileSystem referred inside depends on the 'fs.defaultFS' configuration or "-fs" argument from
the client side.

So you might need to keep the usage as previous. And update the  new test accordingly. Also
another test failure fix may not be necessary after revert of usage.

> Display help if the  command option to "hdfs dfs " is not valid
> ---------------------------------------------------------------
>
>                 Key: HDFS-9125
>                 URL: https://issues.apache.org/jira/browse/HDFS-9125
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: nijel
>            Assignee: nijel
>            Priority: Minor
>         Attachments: HDFS-9125_1.patch, HDFS-9125_2.patch, HDFS-9125_3.patch
>
>
> {noformat}
> master:/home/nijel/hadoop-3.0.0-SNAPSHOT/bin # ./hdfs dfs -mkdirs
> -mkdirs: Unknown command
> {noformat}
> Better to display the help info.



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

Mime
View raw message