wangzzu commented on a change in pull request #13024:
URL: https://github.com/apache/flink/pull/13024#discussion_r473546486



##########
File path: 
flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontend.java
##########
@@ -219,34 +219,49 @@ protected void run(String[] args) throws Exception {
 
                final ProgramOptions programOptions = 
ProgramOptions.create(commandLine);
 
-               final PackagedProgram program =
-                               getPackagedProgram(programOptions);
+               final List<URL> jobJars = 
getJobJarAndDependencies(programOptions);
 
-               final List<URL> jobJars = program.getJobJarAndDependencies();
                final Configuration effectiveConfiguration = 
getEffectiveConfiguration(
                                activeCommandLine, commandLine, programOptions, 
jobJars);
 
                LOG.debug("Effective executor configuration: {}", 
effectiveConfiguration);
 
+               final PackagedProgram program = 
getPackagedProgram(programOptions, effectiveConfiguration);
+
                try {
                        executeProgram(effectiveConfiguration, program);
                } finally {
                        program.deleteExtractedLibraries();
                }
        }
 
-       private PackagedProgram getPackagedProgram(ProgramOptions 
programOptions) throws ProgramInvocationException, CliArgsException {
+       /**
+        * Get all provided libraries needed to run the program from the 
ProgramOptions.
+        */
+       public List<URL> getJobJarAndDependencies(ProgramOptions 
programOptions) throws FileNotFoundException, ProgramInvocationException {

Review comment:
       fixed




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


Reply via email to