[
https://issues.apache.org/jira/browse/FLINK-7989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16240226#comment-16240226
]
ASF GitHub Bot commented on FLINK-7989:
---------------------------------------
Github user zentol commented on a diff in the pull request:
https://github.com/apache/flink/pull/4951#discussion_r149069349
--- 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 --
this filtering seems redundant now, the non-directory branch in
`uploadAndRegisterFiles` should catch it.
We may want to pull the directory expansion into this method instead, and
keep uploadAndRegisterFiles as a dumb upload method.
> 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)