Support Questions

Find answers, ask questions, and share your expertise

Cannot change HDFS ACLs

avatar
Contributor

Hi guys,

 

I was playind around with ACLs on a test cluster and set them recursively on /user to others::r-- instead of others::r-x. Then I wanted to change it back on /user/hive/warehouse but no matter what I do I cannot change them:

 

hdfs dfs -getfacl /user/hive/warehouse
# file: /user/hive/warehouse
# owner: hive
# group: hive
user::rwx
user:hive:rwx
group::---
group:hive:rwx
mask::rwx
other::--x

 

hdfs dfs -setfacl -m group::rwx /user/hive/warehouse

 

hdfs dfs -getfacl /user/hive/warehouse
# file: /user/hive/warehouse
# owner: hive
# group: hive
user::rwx
user:hive:rwx
group::---
group:hive:rwx
mask::rwx
other::--x

 

It always remains the same, I cannot change anything at all... Any ideas?

1 ACCEPTED SOLUTION

avatar
Mentor
2 REPLIES 2

avatar
Mentor
Take a look at some of the reasons for such a behaviour, noted in this thread: http://community.cloudera.com/t5/Storage-Random-Access-HDFS/HDFS-Cannot-change-permissions-of-a-sing...?

avatar
Contributor

Thanks! I've totally forgotten about the existence of Sentry 😕