yuruguo commented on a change in pull request #14477:
URL: https://github.com/apache/flink/pull/14477#discussion_r554300858
##########
File path:
flink-yarn/src/main/java/org/apache/flink/yarn/YarnResourceManagerDriver.java
##########
@@ -124,6 +125,8 @@ public YarnResourceManagerDriver(
super(flinkConfig,
GlobalConfiguration.loadConfiguration(configuration.getCurrentDir()));
this.yarnConfig = new YarnConfiguration();
+
yarnConfig.addResource(HadoopUtils.getHadoopConfiguration(flinkConfig));
+ yarnConfig.addResource(Utils.getYarnConfiguration(flinkConfig));
Review comment:
Ok @tillrohrmann, We can slightly modify the `getYarnConfiguration`
method in the `Utils` to call
`HadoopUtils.getHadoopConfiguration(flinkConfig)`, as follows:

then `getYarnConfiguration` can be reused everywhere needed,as follows:
in `YarnClusterClientFactory` class

in `YarnResourceManagerDriver` class

Or another way is to keep the `getYarnConfiguration` method unchanged and
add a method `loadYarnConfiguration` packing above logic in the `Utils` class,
as follows:

then `loadYarnConfiguration` can be reused everywhere needed.
Which one do you think is appropriate? THX!
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]