Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_spark-job-anatomy

Spark Batch Job Anatomy (DAG Stages, Shuffles, Skew & AQE)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Spark Batch Job Anatomy (DAG Stages, Shuffles, Skew & AQE) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_spark-job-anatomy/opengraph-image)](https://archos.sageideas.dev/d/dgm_spark-job-anatomy)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_spark-job-anatomy)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_spark-job-anatomy" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Spark Batch Job Anatomy (DAG Stages, Shuffles, Skew & AQE) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Batch Data Pipelines"]
  n1_1["Driver & Catalyst"]
  n2a_2["Narrow Map Tasks"]
  n2b_3[("Wide Shuffle Exchange")]
  n3_4[("AQE Skew & Output")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Plan DAG · RPC"| n1_1
  n1_1 -->|"2a. Scan local · S3"| n2a_2
  n1_1 -.->|"2b. Shuffle IO · TCP"| n2b_3
  n2a_2 -->|"3a. Commit tbl · S3"| n3_4
  n2b_3 -->|"3b. Verify · Control"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Batch Data PipelinesSTATELESS
    TB-scale SQL & ETL transforms
  • Driver & CatalystSTATELESS
    Logical -> physical stage DAG
  • Narrow Map TasksSTATELESS
    Filter/project in-memory scan
  • Wide Shuffle ExchangeSTATEFUL
    Hash partition + disk spill
  • AQE Skew & OutputSTATEFUL
    Coalesce parts -> Iceberg sink
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Batch Data Pipelines → Driver & Catalyst (Plan DAG)[RPC]
  2. Driver & Catalyst → Narrow Map Tasks (Scan local)[S3]
  3. Driver & Catalyst → Wide Shuffle Exchange (Shuffle IO)[TCP]
  4. Narrow Map Tasks → AQE Skew & Output (Commit tbl)[S3]
  5. Wide Shuffle Exchange → AQE Skew & Output (Verify)[Control]
  6. AQE Skew & Output → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →