Data FlowData Flow
DataFlow
  • User Manual
  • Developer Manual
  • Examples
  • API Reference
Overview
Getting Started
    InstallationQuick StartFirst Pipeline
Pipeline Authoring
Execution
Deployment
Troubleshooting
Examples
Getting Started

Installation

Everything needed to run the platform locally with Docker Compose.

Prerequisites

  • Java 17
  • Maven 3.9+
  • Docker
  • Docker Compose V2
TerminalCode
docker compose version # must print a v2 version

Choose a runtime mode

ModePurposeProduct storageSpark topology
objectproduction-likeRustFS (S3-compatible)master + 2 workers
singleresource-constrainedRustFS (S3-compatible)1 container
sharedlegacy local / devshared /app/data volumemaster + 2 workers

object is the default mode in these docs - production-like, with all product-managed files in object storage. single collapses the master and worker into one container for resource-constrained deployments. shared keeps the legacy local-volume workflow, where inputs and outputs are plain folders on disk. A Spark history server also runs in shared and object modes; object/single bake the engine jars into a custom Spark image.

Start with the helper script (recommended)

TerminalCode
cd infra/compose chmod +x compile_and_run.sh ./compile_and_run.sh object # object mode (recommended) # or ./compile_and_run.sh single ./compile_and_run.sh shared # legacy local-volume mode

The script builds the engine modules, bakes the custom Spark image (object/single), then runs docker compose up -d --build for the selected profile.

With no argument the script itself defaults to shared - pass object explicitly.

Pass a second license argument to build with license enforcement enabled (the customer build profile): ./compile_and_run.sh object license. Without it you get an internal build, which skips license checks.

Start with Docker Compose directly

TerminalCode
# from the repository root mvn clean package -pl pipeline-core,pipeline-infrastructure,pipeline-domain -am -DskipTests # object mode needs the baked Spark image docker build -f Dockerfile.spark -t beyond-pipeline-spark:3.5.1-pipeline . cd infra/compose docker compose --project-name beyond-pipeline -f docker-compose.yml --profile object up -d --build

For single mode, build beyond-pipeline-spark-single:3.5.1-pipeline from Dockerfile.spark-single and use --profile single instead.

Never run multiple profiles at the same time - they share container names and host ports (8080, 8085, 7077, 6066). Tear one down before starting another: docker compose --project-name beyond-pipeline -f docker-compose.yml --profile object down.

Verify the stack

TerminalCode
docker compose --project-name beyond-pipeline ps curl http://localhost:8080/actuator/health # {"status":"UP"}

The app container has a 90-second health-check grace period - give it a minute after up -d before expecting UP. Then check the Spark Master UI at http://localhost:8085 - it should list registered workers. In object/single modes you can also open the RustFS console at http://localhost:9001.

Services and ports

ServiceURLModes
Pipeline APIhttp://localhost:8080all
Swagger UIhttp://localhost:8080/swagger-ui.htmlall
Spark Master UIhttp://localhost:8085all
Spark Worker 1 UIhttp://localhost:8086all
Spark Worker 2 UIhttp://localhost:8087shared, object
Spark History Serverhttp://localhost:18080shared, object
RustFS APIhttp://localhost:9000object, single
RustFS consolehttp://localhost:9001object, single
PostgreSQLlocalhost:5433 (admin)all
App JVM debug portlocalhost:5005all

The PostgreSQL database is bl-pipeline (user admin in local compose).

Key environment variables

VariablePurpose
APP_STORAGE_BACKENDobject (recommended) or shared
APP_DRIVER_LOG_ARCHIVE_ENABLEDArchive driver logs to object storage (on in object/single)
APP_OBJECT_STORAGE_*Bucket, endpoint, keys, prefix for object storage
PIPELINE_DB_URL / PIPELINE_DB_USER / PIPELINE_DB_PASSPostgreSQL connection (app + Spark driver)
OIDC_ISSUER_URI / OIDC_AUDIENCEOIDC identity provider issuer and audience for JWT validation
SECURITY_SUPER_ADMIN_EMAILBootstraps the first SUPER_ADMIN user on startup
SECURITY_USER_PROVISIONING_MODEINVITE_ONLY (default) or AUTO_PROVISION
DATAFLOW_LICENSE_MODE / DATAFLOW_LICENSE_KEY / DATAFLOW_LICENSE_FILELicensing

The compose files under infra/compose/env/ set sensible defaults for local runs - you normally don't need to change anything for shared mode. See Environment Variables for the full reference.

External tools for examples

Many sample specs read from real systems. Bring up the ones you need with the external-tools compose file:

TerminalCode
docker compose --project-name beyond-pipeline-testing-tools \ -f infra/compose/docker-compose.external-tools.yml up -d postgres mysql

Available: PostgreSQL (:5434), MySQL (:3306), MSSQL (:1433), Oracle (:1521), Kafka (:29093), Redis (:6379), MongoDB (:27017), Cassandra (:9042), Elasticsearch (:9200), Solr (:8983), HBase, LocalStack (Kinesis/SQS/DynamoDB/S3, :4566), MinIO (:9100), fake-gcs (:4443), Azurite (:10000), SFTP (:24), SMB (:4445), REST mocks, and Superset (:8090). The SQL services are seeded with the sales_db database the JDBC examples expect.

Watch mode (fast dev loop)

TerminalCode
cd infra/compose ./compile_and_run_watch.sh # object mode (its default)

Requires watchexec (brew install watchexec).

Watches the sources: app changes rebuild and restart the app container; engine (core/domain/infrastructure) changes are picked up by the next pipeline run; connector jars reload without a Spark restart.

Common first-boot problems

SymptomCause / fix
App unhealthy for ~90sNormal - health-check grace period; wait or check docker logs pipeline_app
host.docker.internal resolution failsRequires Docker Desktop (or Docker 20.10+ with host-gateway support)
Single mode Spark never becomes healthySPARK_NO_DAEMONIZE must not be set in single mode
Port 8080/8085 already in useAnother profile is still running - tear it down first
Job submission fails with license errorsConfigure DATAFLOW_LICENSE_* variables

Next steps

  • Quick Start - run your first pipeline in minutes
  • Architecture Overview - what you just started
  • Deployment - deploying the platform
Suggest edit
Last modified on November 26, 2026
Core ConceptsQuick Start
On this page
  • Prerequisites
  • Choose a runtime mode
  • Start with the helper script (recommended)
  • Start with Docker Compose directly
  • Verify the stack
  • Services and ports
  • Key environment variables
  • External tools for examples
  • Watch mode (fast dev loop)
  • Common first-boot problems
  • Next steps