aljoscha commented on a change in pull request #7420: [FLINK-11272][flink-yarn] 
Support for parsing multiple --yarnship par…
URL: https://github.com/apache/flink/pull/7420#discussion_r249010729
 
 

 ##########
 File path: 
flink-yarn/src/main/java/org/apache/flink/yarn/cli/FlinkYarnSessionCli.java
 ##########
 @@ -311,14 +311,16 @@ private AbstractYarnClusterDescriptor createDescriptor(
                }
 
                List<File> shipFiles = new ArrayList<>();
-               // path to directory to ship
+               // path to directories to ship
                if (cmd.hasOption(shipPath.getOpt())) {
-                       String shipPath = 
cmd.getOptionValue(this.shipPath.getOpt());
-                       File shipDir = new File(shipPath);
-                       if (shipDir.isDirectory()) {
-                               shipFiles.add(shipDir);
-                       } else {
-                               LOG.warn("Ship directory is not a directory. 
Ignoring it.");
+                       String[] shipPaths = 
cmd.getOptionValues(this.shipPath.getOpt());
+                       for (String shipPath : shipPaths) {
+                               File shipDir = new File(shipPath);
+                               if (shipDir.isDirectory()) {
+                                       shipFiles.add(shipDir);
+                               } else {
+                                       LOG.warn("Ship directory {} is not a 
directory. Ignoring it.", shipDir.getAbsolutePath());
 
 Review comment:
   This code, and the rest around it seems to indicate that shipping files 
would work: 
https://github.com/apache/flink/blob/0605e8445bea56182486512bd897fd508bc075a5/flink-yarn/src/main/java/org/apache/flink/yarn/AbstractYarnClusterDescriptor.java#L1169
   
   Why are you asking?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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