[
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.3)
(was: 1.11.2)
(was: 1.12.0)
> 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
> 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)