Skip to content

Flink project example to rewrite savepoint with State Processor API

Notifications You must be signed in to change notification settings

ververica/lab-flink-scala-savepoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of stateful job using Apache Flink Scala API 2.12

To build a fat-jar run:

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:

"org.apache.flink" %% "flink-streaming-java"

change to

"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.

About

Flink project example to rewrite savepoint with State Processor API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages