Read OSS

apache/spark

5 articles

Prerequisites

01

Navigating Apache Spark's Codebase: Architecture and Module Map

A comprehensive mental model of Apache Spark's monorepo structure, its ~40 Maven modules, key entry points, and the Classic vs Connect architectural split.

02

The Boot Sequence: SparkContext, SparkEnv, and the Scheduling Stack

Traces the complete initialization path from spark-submit to a running Spark application, dissecting SparkContext's init sequence, SparkEnv, and the two-level scheduling stack.

03

The Catalyst Query Pipeline: From SQL Text to Optimized Plan

Deep-dive into Spark SQL's Catalyst optimizer: TreeNode abstraction, RuleExecutor framework, and the complete query pipeline from parsing to physical planning.

04

From Plan to Execution: RDDs, Stages, Tasks, and the Shuffle

How physical SparkPlans become distributed computation: RDD properties, stage creation, the shuffle system, BlockManager, and Adaptive Query Execution.

05

Spark Connect and the Extensibility Architecture

The client-server decoupling via gRPC/Protobuf, plus extensibility patterns: SparkSessionExtensions, pluggable cluster managers, ShuffleManager, and Data Source API V2.