Battery of code examples to demonstrate the capabilities of Pravega as a data stream storage system for Apache Flink.
- Pravega running (see here for instructions)
- Build pravega-samples repository
- Apache Flink 1.12 running
Use gradle to assemble a distribution folder containing the Flink programs as a ready-to-deploy
uber-jar called pravega-flink-examples-<VERSION>-all.jar
:
$ ./gradlew installDist
...
$ ls flink-connector-examples/build/install/pravega-flink-examples/lib
...
pravega-flink-examples-<VERSION>-all.jar
...
This example demonstrates how to use the Pravega Flink Connectors to write data collected
from an external network stream into a Pravega Stream
and read the data from the Pravega Stream
.
See wordcount for more information and execution instructions.
This sample demonstrates Pravega EXACTLY_ONCE feature in conjuction with Flink checkpointing and exactly-once mode. See Exactly Once Sample for instructions.
This sample demonstrates the use of Pravega StreamCuts in Flink applications. See StreamCuts Sample for instructions.
This sample demonstrates the use of Pravega Watermarks in Flink applications. See Watermark Sample for instructions.