aryangupta1998 commented on code in PR #12193:
URL: https://github.com/apache/ozone/pull/12193#discussion_r4769231463


##########
hadoop-hdds/common/src/main/resources/ozone-default.xml:
##########
@@ -4744,6 +4744,18 @@
     </description>
   </property>
 
+  <property>
+    <name>ozone.fs.file.permission.reported</name>
+    <value>666</value>
+    <tag>OZONE, CLIENT</tag>
+    <description>
+      Permission that ofs and o3fs report for files, in octal or symbolic 
form. Ozone does not persist or enforce
+      this permission; access is controlled by ACLs. When ACLs are enabled, 
set it to 600 so that applications which
+      check whether a file is readable by others, such as YARN when deciding 
if a resource can be localized
+      publicly, do not treat every file as world-readable. Directories are 
always reported as 777.

Review Comment:
   Good catch. It's worse than staying PUBLIC: with 600 the client marks 
libjars/* public because the directories report 777, but the NodeManager checks 
the jars inside, so localization fails. With the default 666 nothing changes. 
I've updated the description: with 600, -libjars jobs need 
mapreduce.client.libjars.wildcard=false, so each jar is checked on its own and 
marked private.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to