Skip to main content
This guide walks you through installing FlareDB, starting a local instance, and running a WordCount pipeline on FlareDB. By the end, you’ll have a running FlareDB instance with a WordCount pipeline successfully submitted and executed.

1. Install the FlareDB CLI

The flare CLI lets you initialize and manage FlareDB instances, and provides an interactive SQL shell for querying your data.
You can also download the binary for your platform from the GitHub releases page.

2. Initialize FlareDB

This creates the local ~/.flaredb directory and downloads the components required to run FlareDB. This is a one time setup.

3. Start an instance

FlareDB starts a local instance on port 8099 and is ready to accept pipeline jobs.
The local instance stores its data under ~/.flaredb, including tables created through the SQL shell and data written by pipelines.

4. Run a pipeline

Clone the repository and run the WordCount example:
The run task starts com.flaredb.example.WordCount and submits the pipeline to your local FlareDB instance. To learn how to build and run your own pipelines, see Run a Beam pipeline.

5. Stop the instance

flare down stops the running FlareDB instance. Run flare up again when you want to start it.

Next steps

CLI reference