wangyang0918 commented on a change in pull request #11903:
URL: https://github.com/apache/flink/pull/11903#discussion_r417072162



##########
File path: 
flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java
##########
@@ -691,11 +716,15 @@ private ApplicationReport startAppMaster(
                                                        1));
                }
 
-               final Set<File> userJarFiles = (jobGraph == null)
-                               // not per-job submission
-                               ? Collections.emptySet()
-                               // add user code jars from the provided JobGraph
-                               : jobGraph.getUserJars().stream().map(f -> 
f.toUri()).map(File::new).collect(Collectors.toSet());
+               final Set<File> userJarFiles = new HashSet<>();
+               if (jobGraph != null) {
+                       
userJarFiles.addAll(jobGraph.getUserJars().stream().map(f -> 
f.toUri()).map(File::new).collect(Collectors.toSet()));
+               }
+
+               final List<URI> jarUrls = 
ConfigUtils.decodeListFromConfig(configuration, PipelineOptions.JARS, 
URI::create);
+               if (jarUrls != null && 
YarnApplicationClusterEntryPoint.class.getName().equals(yarnClusterEntrypoint)) 
{

Review comment:
       You are right. For perjob mode, we also add the user jars to the 
`userJarFiles`.




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


Reply via email to