Skip to content

Spark internals

31 in-depth lessons. How Spark executes your batch jobs, the configs that change it, and what is new in Spark 4.0. Every lesson ends with a quick check.

Bronze

Module 1: Your first Spark session

Run Spark locally and say who does what in an application.

Module 2: How a job runs

Trace an action through jobs, stages, tasks and partitions.

Silver

Module 3: Shuffles and joins

Spot every shuffle in a job and choose how a join runs.

Module 4: Memory and resources

Cache the right things and size a cluster to the workload.

Module 5: Self-tuning and file layout

Let AQE re-plan queries, and stop jobs writing tiny files.

Gold

Module 6: Skew

Find a hot key and spread it, by hand or with AQE.

Module 7: Under the hood

Read a physical plan and explain spills, fetch failures and serializers.

Module 8: Layout tricks

Skip partitions at runtime and pre-shuffle tables with buckets.

Module 9: Spark 4

Explain what Spark 4 changes: Connect, ANSI mode, VARIANT, pipe SQL and Python data sources.