[ 
https://issues.apache.org/jira/browse/FLINK-7989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16240238#comment-16240238
 ] 

ASF GitHub Bot commented on FLINK-7989:
---------------------------------------

Github user NicoK commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4951#discussion_r149071640
  
    --- Diff: 
flink-yarn/src/main/java/org/apache/flink/yarn/AbstractYarnClusterDescriptor.java
 ---
    @@ -186,6 +186,8 @@ public void addShipFiles(List<File> shipFiles) {
                for (File shipFile: shipFiles) {
                        // remove uberjar from ship list (by default everything 
in the lib/ folder is added to
                        // the list of files to ship, but we handle the uberjar 
separately.
    +                   // NOTE: this does not filter the uberjar if added 
recursively, e.g. by having the "lib"
    +                   //       folder in the shipFiles
                        if (!(shipFile.getName().startsWith("flink-dist") && 
shipFile.getName().endsWith("jar"))) {
    --- End diff --
    
    oh - you're right.
    
    Regarding the change of `uploadAndRegisterFiles`: I wouldn't upload the 
shipfiles in `addShipFiles` yet, so if we changed that, we'd have to traverse 
through the directories twice as we definitely need to do that for the uploads 
and if we wanted to filter recursively in `addShipFiles`, too, then there as 
well.


> flink-dist jar is deployed twice onto YARN
> ------------------------------------------
>
>                 Key: FLINK-7989
>                 URL: https://issues.apache.org/jira/browse/FLINK-7989
>             Project: Flink
>          Issue Type: Bug
>          Components: YARN
>    Affects Versions: 1.4.0
>            Reporter: Nico Kruber
>            Assignee: Nico Kruber
>
> We always add the {{flink-dist*.jar}} ourselves, but it could also be inside 
> a shipped folder such as the "lib/" folder and is then deployed again.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to