You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Zhu Zhu (Jira)" <ji...@apache.org> on 2020/08/10 08:47:00 UTC

[jira] [Updated] (FLINK-12148) Give precedence to specified local jar when same mainClass is included in both lib and specified jar

     [ https://issues.apache.org/jira/browse/FLINK-12148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zhu Zhu updated FLINK-12148:
----------------------------
    Fix Version/s:     (was: 1.10.2)
                   1.10.3
                   1.11.2

> Give precedence to specified local jar when same mainClass is included in both lib and specified jar
> ----------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-12148
>                 URL: https://issues.apache.org/jira/browse/FLINK-12148
>             Project: Flink
>          Issue Type: Bug
>          Components: Command Line Client
>    Affects Versions: 1.8.0
>            Reporter: leesf
>            Assignee: leesf
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.12.0, 1.11.2, 1.10.3
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When submitting the flink job with ./flink run -c mainClass localJar. If the main class is included in the $FLINK_HOME/lib directory and the specified jar package, then the mainClass in the $FLINK_HOME/lib directory is executed instead of the specified localJar.
> For example, There is flink-examples-streaming_2.11-1.9-SNAPSHOT.jar in lib directory that contains the org.apache.flink.streaming.examples.wordcount.WordCount class, and LocalWordCount.jar also contains org.apache.flink.streaming.examples.wordcount The .WordCount class, then use ./flink run -c org.apache.flink.streaming.examples.wordcount.WordCount /tmp/LocalWordCount.jar to submit job, the WordCount class in flink-examples-streaming_2.11-1.9-SNAPSHOT.jar is executed in instead of LocalWordCount.jar.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)