This project consists of 3 modules:
bootstrap
creates a new savepoint via the state processor APIflink-job
defines a Flink job that should be able to resume from the savepoint created bybootstrap
common
defines shared classes that are used by both modules, e.g. data objects
-
Create a new savepoint by running
BootstrapJob
:./gradlew :bootstrap:run
This will create a new savepoint under
/tmp/flink-test/state-proc/savepoint1
-
Start a Flink cluster.
-
Submit the job and resume from the created savepoint:
flink run -p 1 -s "file:///tmp/flink-test/state-proc/savepoint1" flink-job/build/libs/lab-stateproc-flink-job-1.11-SNAPSHOT-all.jar
-
Check that the job is running and produces this output:
(1,1.5) (2,1.0) (3,1.0) (4,1.0)