-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b53e524
commit 876d0b8
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Example of stateful job using Apache Flink Scala API 2.12 | ||
|
||
To build a fat-jar run: | ||
|
||
```bash | ||
sbt assembly | ||
``` | ||
|
||
in the result you will a JAR file at target/scala-2.12/scala-212-savepoint-assembly-0.1.0-SNAPSHOT.jar | ||
|
||
Main class for the a Flink job: __com.github.novakovalexey.Main__ | ||
|
||
# Switch Flink version | ||
|
||
In order to switch to Flink 1.15.x or later version, you need to remove second % (percent) sign in the SBT `libraryDependencies` for most of the Flink dependencies. For example: | ||
|
||
```scala | ||
"org.apache.flink" %% "flink-streaming-java" | ||
``` | ||
change to | ||
|
||
```scala | ||
"org.apache.flink" % "flink-streaming-java" | ||
``` | ||
|
||
this will make SBT to not add a Scala version suffix like _2.12 to the end of artifactId when | ||
downloading from the Maven central. |