link3280 opened a new pull request #7314: [FLINK-11135][YARN] Refactor Hadoop 
config loading in HadoopUtils
URL: https://github.com/apache/flink/pull/7314
 
 
   ## What is the purpose of the change
   
   Currently, Hadoop config search order is: `HADOOP_HOME > HADOOP_CONF_DIR > 
Flink configuration entries`. However, YARN client prefers `HADOOP_CONF_DIR` to 
`HADOOP_HOME`, so it would result in inconsistency if the two env variables 
point to different paths. 
   
   This PR refactors the Hadoop config loading in HadoopUtils, changing the 
search order to `HADOOP_CONF_DIR > Flink configuration entries > HADOOP_HOME`, 
and adds checks for values of overlapping configuration entries from different 
loading approaches.
   
   ## Brief change log
   
     - *Refactor the Hadoop configurations loading in HadoopUtils*
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
     - *Added a test to ensure the configuration priority of different loading 
approaches in HadoopConfigLoadingTest*
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: yes
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no
     - If yes, how is the feature documented? 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to