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
[](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_5COMPONENT STACK (6)
- Batch Data PipelinesSTATELESSTB-scale SQL & ETL transforms
- Driver & CatalystSTATELESSLogical -> physical stage DAG
- Narrow Map TasksSTATELESSFilter/project in-memory scan
- Wide Shuffle ExchangeSTATEFULHash partition + disk spill
- AQE Skew & OutputSTATEFULCoalesce parts -> Iceberg sink
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Batch Data Pipelines → Driver & Catalyst (Plan DAG)[RPC]
- Driver & Catalyst → Narrow Map Tasks (Scan local)[S3]
- Driver & Catalyst → Wide Shuffle Exchange (Shuffle IO)[TCP]
- Narrow Map Tasks → AQE Skew & Output (Commit tbl)[S3]
- Wide Shuffle Exchange → AQE Skew & Output (Verify)[Control]
- AQE Skew & Output → Downstream & OTel (Emit /)[OTLP/API]