Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
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
In fact,
-setfacl -x | -m | --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>