leesf created FLINK-12148: ----------------------------- Summary: 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 Fix For: 1.9.0
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 (v7.6.3#76005)