Install Sedona Scala/Java
Before starting the Sedona journey, you need to make sure your Apache Flink cluster is ready.
Then you can create a self-contained Scala / Java project. A self-contained project allows you to create multiple Scala / Java files and write complex logics in one place.
To use Sedona in your self-contained Flink project, you just need to add Sedona as a dependency in your POM.xml or build.sbt.
- To add Sedona as dependencies, please read Sedona Maven Central coordinates
- Read Sedona Flink guide and use Sedona Template project to start: Sedona Template Project
- Compile your project using Maven. Make sure you obtain the fat jar which packages all dependencies.
- Submit your compiled fat jar to Flink cluster. Make sure you are in the root folder of Flink distribution. Then run the following command:
./bin/flink run /Path/To/YourJar.jar