FlareRunner, which submits the pipeline to a running FlareDB instance as a job.
Prerequisites
- A running FlareDB instance. See the Quickstart.
- JDK 17.
- An Apache Beam project. The examples in this guide use Gradle and Beam 2.76.0; Maven is supported as well.
1. Add the runner dependency
Add theflaredb-runner artifact to your Beam project.
- Gradle
- Maven
build.gradle
2. Configure the pipeline
SetFlareRunner as the runner and configure the FlareDB instance and applicatio JAR:
WordCount.java
3. Build the pipeline
Build a self-contained (uber) JAR containing your pipeline and its dependencies.setUberJar.
4. Run the pipeline
With FlareDB instance running, submit the pipeline:Pipeline options
Define your options by extendingFlarePipelineOptions, For Example:
WordCountPipelineOptions.java
These options can also be provided as command-line arguments:
Pipeline logs:
// ToDoflare up prints the instance ID. The <job-id> is generated when a job is submitted.
Next steps
- FlareDB I/O — read from and write to FlareDB tables from a pipeline.
- SQL shell — query the data your pipeline produces.