HuangZhenQiu commented on a change in pull request #8303: [FLINK-12343]add file 
replication config for yarn configuration
URL: https://github.com/apache/flink/pull/8303#discussion_r300810177
 
 

 ##########
 File path: 
flink-yarn/src/main/java/org/apache/flink/yarn/AbstractYarnClusterDescriptor.java
 ##########
 @@ -747,6 +747,17 @@ public ApplicationReport startAppMaster(
                // ship list that enables reuse of resources for task manager 
containers
                StringBuilder envShipFileList = new StringBuilder();
 
+               int fileReplication = 
yarnConfiguration.getInt("dfs.replication", 3);
+               final String replication = 
flinkConfiguration.getString(YarnConfigOptions.FILE_REPLICATION);
+               if (!StringUtils.isNullOrWhitespaceOnly(replication)) {
 
 Review comment:
   I received @tillrohrmann's suggestion to use String here. So there is no 
default value needs to be set in the ConfigOption.

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


With regards,
Apache Git Services

Reply via email to