Data FlowData Flow
DataFlow
  • User Manual
  • Developer Manual
  • Examples
  • API Reference
Overview
Getting Started
Pipeline Authoring
Execution
Deployment
Troubleshooting
    Common ErrorsSpark TroubleshootingAuth Troubleshooting
Examples
Troubleshooting

Spark Troubleshooting

Engine-side failures: out-of-memory jobs, missing connectors, runs that look stuck, and logs that seem empty. Start with the stages and logs - they name the failing stage - then use the table below.

At a glance

  • Logs first - the stage failureReason names what failed; the driver stderr carries the message.
  • Most causes are sizing or data - OOM and stuck runs trace back to execution.settings or the input.
  • Status lags ~30s - runs reconcile on a 30-second interval, so a RUNNING run may already be done.

Logs first

TerminalCode
# driver logs: stream, tail, grep curl -H "Authorization: Bearer $TOKEN" \ "http://localhost:8080/api/pipelines/$PIPELINE_ID/runs/$RUN_ID/logs?stream=stdout&tail=200"
  • While a run is RUNNING, poll every 3-5 seconds with a tail; when it reaches a terminal status, fetch the final logs once
  • stream=stderr for errors; grep= to filter
  • In object/single modes, archived logs are read first (final, then live snapshots), so logs survive container restarts. In shared mode, live logs come through the Spark Master UI proxy - if a worker restarted, the proxy may have nothing to show: use the history server

Status can lag reality by up to ~30 seconds (the reconciliation interval) - a run that looks RUNNING may already be done, and vice versa.

Common engine problems

SymptomCause / fix
Job dies with OutOfMemoryErrorRaise executor_memory / executor_memory_overhead (or driver ones) in execution.settings - see Execution Settings
ClassNotFoundException for a providerThe connector jar is missing from data/libs/connectors/ - add it, restart the app; the next run picks it up
Sources read 0 rows, run is a no-opAsset read 0 rows with no declared schema: - declare the schema or check the data exists
Task failures, retries exhaustedtask_max_retries (min 3) handles worker-loss retries; repeated failures point at the data or the spec - check the stage failureReason
Run stuck RUNNING (batch)Give it the 30s reconciliation; if genuinely stuck, kill it (ends CANCELLED) and re-run
Run stuck RUNNING (stream)Streaming runs stay alive by design - kill to stop, and it resumes from its checkpoint on the next start
Streaming pipeline not progressingCheck the trigger (trigger_interval on outputs, max_offsets_per_trigger on assets) and the driver logs for source errors
Output files look wrong or emptyCheck the stage status and row counts in the run's stages - if a build was skipped, its input frame was empty
Arabic or other non-ASCII paths failContainers run with a UTF-8 locale - check that file names survive upload (GET the file list through the API)
Driver logs empty in shared modeThe Spark proxy loses logs when a worker restarts - use the history server (event logs are on)

Where to look

SurfaceURLWhat it shows
Spark Master UIhttp://localhost:8085Running apps, workers, job drill-down
Spark Worker UIshttp://localhost:8086 / :8087Per-worker executors and logs
Spark History Serverhttp://localhost:18080Completed runs (event logs)
Cluster resourcesGET /api/cluster/resourcesTotal/available cores and memory
App debug portlocalhost:5005 (JDWP)Debugger attach point

Before sizing a pipeline's execution.settings, check what the cluster actually has free with the cluster-resources endpoint.

Related pages

  • Execution Settings - sizing runs
  • Execution Lifecycle - statuses and kill behavior
  • Common Errors - API-side errors
  • Deployment - health checks and operations
Suggest edit
Last modified on November 26, 2026
Common ErrorsAuth Troubleshooting
On this page
  • At a glance
  • Logs first
  • Common engine problems
  • Where to look
  • Related pages