hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei-Chiu Chuang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-9852) hdfs dfs -setfacl error message is misleading
Date Wed, 24 Feb 2016 17:36:18 GMT
Wei-Chiu Chuang created HDFS-9852:

             Summary: 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
            Reporter: Wei-Chiu Chuang
            Assignee: Wei-Chiu Chuang
            Priority: Trivial

When I type

hdfs dfs -setfacl -m default:user::rwx

It prints error message:
-setfacl: <acl_spec> is missing
Usage: hadoop fs [generic options] -setfacl [-R] [{-b|-k} {-m|-x <acl_spec>} <path>]|[--set
<acl_spec> <path>]
But actually, it's the path that I missed. A correct command should be
hdfs dfs -setfacl -m default:user::rwx /data

\-setfacl \-m \-x \-\-set expects two parameters.
We should print error message like this if it misses one:
-setfacl: Missing either <acl_spec> or <path>
and print the following if it misses two:
-setfacl: Missing arguments: <acl_spec> <path>

This message was sent by Atlassian JIRA

View raw message