Skip to main content
FlareDB runs Apache Beam pipelines as jobs. Build your pipeline with the Beam SDK as usual, then set FlareRunner as the runner to submit it to a running FlareDB instance.

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 the flaredb-runner artifact to your Beam project.
build.gradle

2. Configure the pipeline

Set FlareRunner as the runner and configure the FlareDB instance and application JAR:
WordCount.java
The JAR is staged to FlareDB so your pipeline code is available when the job runs. Point setUberJar to the fat JAR produced by your build. See the full pipeline in the WordCount example.

3. Build the pipeline

Build a self-contained (uber) JAR containing your pipeline and its dependencies.
Use the build output’s JAR path in setUberJar.

4. Run the pipeline

With FlareDB instance running, submit the pipeline:

Pipeline options

Define your options by extending FlarePipelineOptions, For Example:
WordCountPipelineOptions.java
These options can also be provided as command-line arguments:

Pipeline logs

A JOB-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:
The 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.
Last modified on October 6, 2026