Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

umask nifi with hdfs

umask nifi with hdfs

Hello,

I have a problem with the default umask HDFS and nifi.
It create files with umask=022 while I defined umask=777 (fs.permissions.umask-mode).
No override in nifi. Or is what I should look for?

1 REPLY 1
Highlighted

Re: umask nifi with hdfs

Explorer

@Clément Dumont Have you tried to use the CLI to write on the HDFS and check if the umask values are effectively applied?

hdfs dfs -put /etc/hosts /<directory to store the file>/hosts
hdfs dfs -ls /<directory to store the file>/hosts 

If it's setting the permission according to the defined umask you might want to look at setting a umask value on NIFI:

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hadoop-nar/1.5.0/org.apache.n...

Note: If you are using Ambari, when changing the umask value, all Datanodes and Namenodes must be restarted for the changes to be applied. If Ambari is not used the umask value must be changed in hdfs-site.xml conf file in all DataNodes and Namenodes, and all must be restarted for the changes to take place.

Don't have an account?
Coming from Hortonworks? Activate your account here