Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-12148

Give precedence to specified local jar when same mainClass is included in both lib and specified jar

    XMLWordPrintableJSON

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xleesf leesf
                Reporter:
                xleesf leesf
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m