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 application 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
AJOB-ID is generated automatically for each submitted job. Use it to view logs for a specific job, or stream the most recent logs when you do not provide an ID.
Usage:
JOB-ID is logged during job submission via the runner SDK.
Next steps
- FlareDB I/O — read from and write to FlareDB tables from a pipeline.
- SQL shell — query the data your pipeline produces.