hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9852) hdfs dfs -setfacl error message is misleading
Date Wed, 29 Jun 2016 03:55:45 GMT

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

Hudson commented on HDFS-9852:
------------------------------

SUCCESS: Integrated in Hadoop-trunk-Commit #10030 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/10030/])
HDFS-9852. hdfs dfs -setfacl error message is misleading (Wei-Chiu (aw: rev b3649adf6a1b2dc47566b4b0d652bd4e0a6a8056)
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/AclCommands.java
* hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestAclCommands.java


> hdfs dfs -setfacl error message is misleading
> ---------------------------------------------
>
>                 Key: HDFS-9852
>                 URL: https://issues.apache.org/jira/browse/HDFS-9852
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Wei-Chiu Chuang
>            Assignee: Wei-Chiu Chuang
>            Priority: Minor
>              Labels: supportability
>             Fix For: 3.0.0-alpha1
>
>         Attachments: HDFS-9852.001.patch, HDFS-9852.002.patch
>
>
> When I type
> {noformat}hdfs dfs -setfacl -m default:user::rwx{noformat}
> It prints error message:
> {noformat}
> -setfacl: <acl_spec> is missing
> Usage: hadoop fs [generic options] -setfacl [-R] [{-b|-k} {-m|-x <acl_spec>} <path>]|[--set
<acl_spec> <path>]
> {noformat}
> But actually, it's the path that I missed. A correct command should be
> {noformat}
> hdfs dfs -setfacl -m default:user::rwx /data
> {noformat}
> In fact,
> {noformat}-setfacl -x | -m | --set{noformat} expects two parameters.
> We should print error message like this if it misses one:
> {noformat}
> -setfacl: Missing either <acl_spec> or <path>
> {noformat}
> and print the following if it misses two:
> {noformat}
> -setfacl: Missing arguments: <acl_spec> <path>
> {noformat}



--
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