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

 ##########
 File path: 
flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java
 ##########
 @@ -682,6 +683,9 @@ private ApplicationReport startAppMaster(
                                // add user code jars from the provided JobGraph
                                : jobGraph.getUserJars().stream().map(f -> 
f.toUri()).map(File::new).collect(Collectors.toSet());
 
+               int fileReplication = 
yarnConfiguration.getInt(DFSConfigKeys.DFS_REPLICATION_KEY, 
DFSConfigKeys.DFS_REPLICATION_DEFAULT);
+               fileReplication = 
flinkConfiguration.getInteger(YarnConfigOptions.FILE_REPLICATION, 
fileReplication);
 
 Review comment:
   Yes, you are right. I changed the logic to if the configured value is less 
than default value -1. It will fall back to use the yarn replication 
configuration. The logic is tested in another test case in YarnITCase.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to