Reputation: 215
I have created a directory /tmp/ran-test
with access permission(400) in HDFS.
I tried to copy a file to the directory and got permission denied error.
But, my colleague could able to copy files to the directory without any error.
I am wondering now how it works.
I would appreciate if somebody give their explanation.
Thanks, Jee
Upvotes: 1
Views: 449
Reputation: 18290
The directory in question has HDFS ACL permissions set. Notice the +
character in the permission string of hdfs dfs -ls
output.
dr--------+ - jkris03 hdfs 0 2017-03-20 15:36 /tmp/ranger_test
This +
determines the directory has an ACL (Access Control Lists) and this is providing the user with additional permission to write to it.
To view the ACL permissions set for this directory,
hdfs dfs -getfacl /tmp/ranger_test
Upvotes: 1