steveloughran commented on PR #5953:
URL: https://github.com/apache/hadoop/pull/5953#issuecomment-1902738972

   you can use env var resolution within a hadoop core-site file; which lets 
you at the values with defaults when unset. on locked down config loading 
(oozie etc) then only the default is valid.
   ```
   ${env.LOCAL_DIRS:-some.default}/
   ```
   
   so: no need to add explicit resolution, just document or set as default. 
example, s3a uses temp dirs in yarn containers automatically.
   
   ```xml
   <property>
     <name>fs.s3a.buffer.dir</name>
     <value>${env.LOCAL_DIRS:-${hadoop.tmp.dir}}/s3a</value>
     <description>Comma separated list of directories that will be used to 
buffer file
       uploads to.
       Yarn container path will be used as default value on yarn applications,
       otherwise fall back to hadoop.tmp.dir
     </description>
   </property>
   ```
   
   
   


-- 
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