Apache Spark

How distributed dataframes plan, shuffle and scale.

How Apache Spark runs data processing across many machines: drivers and executors, RDDs and DataFrames, lazy evaluation, partitions, Spark SQL, the Catalyst optimiser, jobs, stages and tasks, the shuffle, join strategies, Adaptive Query Execution and vectorised engines; then performance (skew, memory, caching, file layout), Structured Streaming, PySpark and UDFs, and running and right-sizing Spark. Vendor-neutral: open-source Spark alongside Databricks, Amazon EMR, Google Dataproc, Azure and Fabric, and Kubernetes. By the end you can read a Spark plan and UI and make a slow job fast.

6
chapters
21
modules
~8h
of learning
21
live now
21 modules

Take modules in any order. The route suggests one that builds up naturally.

Take a look inside

The big picture, before the details

One query's journey through Spark, from your code on the driver to files on storage. Watch the tour, or click any part.

df.groupBy(…)Catalyst plandriver: job → stages → tasksstage 1 · map tasksAQE: re-planstage 2 · reduce tasksdate=…01/date=…02/date=…03/few big Parquet filesone query, from code to files

Your code: a DataFrame query or SQL, written once; nothing runs until an action (modules 3–6).

A taste of module 10: change one table's size and the join condition, and see which strategy Spark picks and how much data moves.

orders (500 GB) JOIN other (3 MB)

Broadcast hash join

Copy the small side to every executor and build a hash table there. The big side never moves.

Data moved: 60 MB · the 500 GB side stays put

01

The big picture

Why Spark exists and what a Spark cluster looks like.

2 modules · 40 min

02

Data and APIs

How you describe work in Spark.

4 modules · 90 min

03

How a query runs

From your code to tasks on executors.

6 modules · 140 min

04

Performance

Making slow jobs fast.

4 modules · 95 min

05

Beyond batch

Streaming, Python and running Spark for real.

4 modules · 90 min

06

Capstone

Everything together.

1 module · 40 min