Support Questions

Find answers, ask questions, and share your expertise

HDFS directory permission issue

avatar

I am creating a directory under /user with some name say abcd , but permission for this user is getting set 750 but same operation when is being performed in the different environment permission is getting set 700 , however permission for the directory /user is drwxr-xr-x in both environment .

please find below commands for the operation performed while creating the hdfs directory .

hdfs dfs -mkdir /user/abcd
hdfs dfs -chown abcd:hdfs  

Thanks

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Anurag Mishra

Can you please check the "fs.permissions.umask-mode" property value defined inside your cluster. Is this value set differently in your different clusters?

Ambari --> HDFS --> Configs --> Advanced --> "Advanced hdfs-site" 

https://community.hortonworks.com/content/supportkb/48780/how-to-set-a-global-umask-in-hdfs.html

https://community.hortonworks.com/articles/62613/umask-vs-hdfs-default-acls.html

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Anurag Mishra

Can you please check the "fs.permissions.umask-mode" property value defined inside your cluster. Is this value set differently in your different clusters?

Ambari --> HDFS --> Configs --> Advanced --> "Advanced hdfs-site" 

https://community.hortonworks.com/content/supportkb/48780/how-to-set-a-global-umask-in-hdfs.html

https://community.hortonworks.com/articles/62613/umask-vs-hdfs-default-acls.html

avatar

@Jay Kumar SenSharma

Thanks jay for your response ,

in the lecture where I am experiencing the issue fs.permissions.umask-mode is set 022 but in other cluster where we are not getting the issue value if the same is 077 .