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

Environment Variables

All configuration is environment variables. They split by what reads them: the app (the control plane) and the engine (the Spark driver job and its containers). Locally they come from infra/compose/env/ (app vars in the service, engine vars in spark-*.env); the full inventory lives in pipeline-app/src/main/resources/application*.yml.

At a glance

  • Two readers - app (control plane) variables and engine (Spark driver + containers) variables.
  • Source of truth - the full inventory is in pipeline-app/src/main/resources/application*.yml; local values live under infra/compose/env/.
  • Per-run overrides - a pipeline's execution.settings override the Spark submit defaults.

App (control plane)

Core

VariableDefaultPurpose
PIPELINE_DB_URL / _USER / _PASSrequiredPostgreSQL
OIDC_ISSUER_URIidentity provider URLJWT issuer
OIDC_AUDIENCEAPI audienceRequired aud claim
SECURITY_SUPER_ADMIN_EMAILemptyBootstraps first admin
APP_STORAGE_BACKENDsharedor object (recommended)
APP_DRIVER_LOG_ARCHIVE_ENABLEDfalseArchive driver logs
DATAFLOW_LICENSE_MODEonlineor offline
DATAFLOW_LICENSE_KEY / DATAFLOW_LICENSE_FILEemptyLicense key / proof
DATAFLOW_INSTALLATION_IDemptyMachine fingerprint

Spark submission

VariableDefaultPurpose
SPARK_REST_URLhttp://spark-master:6066Submit API
SPARK_MASTER_URLspark://spark-master:7077Master URL
SPARK_MASTER_UI_URLhttp://spark-master:8080Master UI / log proxy
SPARK_ENGINE_JARinternalDriver app jar URI
SPARK_EXTENDED_ENGINE_JARS/app/data/connector-libsJars for Spark
SPARK_EXTENDED_ENGINE_JARS_LOCAL_DIR/app/connector-libsSame jars, app-side

Submit defaults (SPARK_DRIVER_MEMORY, SPARK_EXECUTOR_*, SPARK_NETWORK_TIMEOUT, ...) also live here; a pipeline's execution.settings override them per run.

Security and UI

VariableDefaultPurpose
SECURITY_USER_PROVISIONING_MODEINVITE_ONLYor AUTO_PROVISION
SECURITY_DEFAULT_ROLEDEVELOPERAuto-provisioned role
SECURITY_CLIENT_ID_CLAIMazpClaim that identifies a service account
CORS_ALLOWED_ORIGIN_PATTERNShttps://*.udi.beyond.ai, http://localhost:5173Browser origins
APP_DOWNLOAD_TOKEN_SECRETdev valueDownload-link HMAC
APP_UI_BASE_URLhttp://localhost:5173Product UI base
OPENAPI_SERVERSemptyOpenAPI server list

Scheduler and runs

VariableDefaultPurpose
PIPELINE_SCHEDULER_TIMEZONEUTCCron timezone
PIPELINE_SCHEDULER_POLL_INTERVAL_MS30000Scheduler tick
PIPELINE_SCHEDULER_DUE_LIMIT50Due per tick
PIPELINE_RUN_STATUS_CHECKER_INTERVAL_MS30000Run reconciliation

Mail

MAIL_HOST / MAIL_PORT / MAIL_USERNAME / MAIL_PASSWORD and APP_EMAIL_FROM control invite emails (office365 SMTP by default).

Engine (Spark driver + containers)

Driver job

VariableDefaultPurpose
PIPELINE_DB_URL / _USER / _PASSrequiredReporter writes run status
PIPELINE_RUN_REPORT_IMPLinternal defaultReporter impl class
CONNECTION_RESOLVER_IMPLinternal defaultConnection resolver class
DATAFLOW_INSTALLATION_IDemptyDriver-side license check

The driver reads these from its own pool and writes run status, stages, and offsets straight to PostgreSQL - never back through the API.

Storage (read by the engine)

VariableDefaultPurpose
PIPELINE_INPUTS_DIR/app/data/inputsInputs
PIPELINE_OUTPUTS_DIR/app/data/outputsOutputs
PIPELINE_SAMPLES_DIR/app/data/outputs/samplesStage samples
PIPELINE_CHECKPOINTS_DIR/app/data/spark-checkpointsStream checkpoints
PIPELINE_STATE_DIR/app/data/pipeline-stateStateful step state
PIPELINE_DEFINITION_DIR/app/data/pipeline-definitionsSpec store

Spark cluster daemons

VariableDefaultPurpose
SPARK_MODEmaster / workerDaemon role
SPARK_MASTER_HOST / _PORTspark-master / 7077Cluster addressing
SPARK_DAEMON_MEMORY512mMaster daemon
SPARK_WORKER_MEMORY / _CORES4G / 4Worker capacity
SPARK_NO_DAEMONIZEtrueNever set in single mode

Read by both

APP_STORAGE_BACKEND, the APP_OBJECT_STORAGE_* group, and the storage dirs above are read by both sides: the app to store/browse product files, the engine to read them (via s3a:// in object mode). In shared mode they are plain mounts of the same /app/data volume.

Related pages

  • Deployment - what a deployment sets
  • Execution Settings - per-run Spark overrides
Suggest edit
Last modified on November 26, 2026
DeploymentCommon Errors
On this page
  • At a glance
  • App (control plane)
    • Core
    • Spark submission
    • Security and UI
    • Scheduler and runs
    • Mail
  • Engine (Spark driver + containers)
    • Driver job
    • Storage (read by the engine)
    • Spark cluster daemons
  • Read by both
  • Related pages