Installation
Everything needed to run the platform locally with Docker Compose.
Prerequisites
- Java 17
- Maven 3.9+
- Docker
- Docker Compose V2
Code
Choose a runtime mode
| Mode | Purpose | Product storage | Spark topology |
|---|---|---|---|
object | production-like | RustFS (S3-compatible) | master + 2 workers |
single | resource-constrained | RustFS (S3-compatible) | 1 container |
shared | legacy local / dev | shared /app/data volume | master + 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)
Code
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
Code
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
Code
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
| Service | URL | Modes |
|---|---|---|
| Pipeline API | http://localhost:8080 | all |
| Swagger UI | http://localhost:8080/swagger-ui.html | all |
| Spark Master UI | http://localhost:8085 | all |
| Spark Worker 1 UI | http://localhost:8086 | all |
| Spark Worker 2 UI | http://localhost:8087 | shared, object |
| Spark History Server | http://localhost:18080 | shared, object |
| RustFS API | http://localhost:9000 | object, single |
| RustFS console | http://localhost:9001 | object, single |
| PostgreSQL | localhost:5433 (admin) | all |
| App JVM debug port | localhost:5005 | all |
The PostgreSQL database is bl-pipeline (user admin in local compose).
Key environment variables
| Variable | Purpose |
|---|---|
APP_STORAGE_BACKEND | object (recommended) or shared |
APP_DRIVER_LOG_ARCHIVE_ENABLED | Archive 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_PASS | PostgreSQL connection (app + Spark driver) |
OIDC_ISSUER_URI / OIDC_AUDIENCE | OIDC identity provider issuer and audience for JWT validation |
SECURITY_SUPER_ADMIN_EMAIL | Bootstraps the first SUPER_ADMIN user on startup |
SECURITY_USER_PROVISIONING_MODE | INVITE_ONLY (default) or AUTO_PROVISION |
DATAFLOW_LICENSE_MODE / DATAFLOW_LICENSE_KEY / DATAFLOW_LICENSE_FILE | Licensing |
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:
Code
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)
Code
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
| Symptom | Cause / fix |
|---|---|
| App unhealthy for ~90s | Normal - health-check grace period; wait or check docker logs pipeline_app |
host.docker.internal resolution fails | Requires Docker Desktop (or Docker 20.10+ with host-gateway support) |
| Single mode Spark never becomes healthy | SPARK_NO_DAEMONIZE must not be set in single mode |
| Port 8080/8085 already in use | Another profile is still running - tear it down first |
| Job submission fails with license errors | Configure DATAFLOW_LICENSE_* variables |
Next steps
- Quick Start - run your first pipeline in minutes
- Architecture Overview - what you just started
- Deployment - deploying the platform