Learn PySpark for data too big for one machine: DataFrames, partitions, shuffles, joins, the Spark UI, and the fixes that make slow jobs fast.
It is the first morning after acme-shop's biggest sale.
Every Spark application is a small team: one coordinator and several workers.
PySpark is Spark's Python API. A DataFrame looks like a pandas DataFrame, but its rows are split across partitions and processed by several executors...
Three ideas explain most Spark performance problems. Spark is not "pandas but distributed": once you see these three, slow jobs stop being mysterious.
When a job is slow, do not guess. Spark shows you exactly what it planned and what actually happened, in two places.
What skew is and how to spot it Skew means one partition holds far more rows than the others.
It is the first morning after acme-shop's biggest sale.
Every Spark application is a small team: one coordinator and several workers.
PySpark is Spark's Python API. A DataFrame looks like a pandas DataFrame, but its rows are split across partitions and...
Three ideas explain most Spark performance problems.
When a job is slow, do not guess. Spark shows you exactly what it planned and what actually happened, in two places.
What skew is and how to spot it Skew means one partition holds far more rows than the others.
Broadcast joins: skip the shuffle for small tables A broadcast join sends a full copy of a small table to every...
Running a Spark cluster yourself means patching, sizing, and monitoring machines.
A teammate hands you this job. "It worked on a sample, but it has run for two hours on the full data." How to diagnose...
You will generate 20 million acme-shop orders on your own laptop, run the same join two ways, read the plan and the...
This extension is optional. It shows the same kind of job running on managed serverless Spark.
What you built You generated 20 million acme-shop orders on your laptop, ran the same join as a shuffle join and a...
Quick reference Common mistakes Relying on schema inference in a recurring pipeline makes Spark scan the file on every...
Roles that use the skills in this module.
Data Engineer
Platform Engineer
Not a software engineer sheet. Every problem comes from real DevOps, SRE, Platform and Cloud interviews, from your first script to a system you build yourself.
Open the Coding SheetUse Spark when the work no longer fits on one machine or no longer finishes inside its time window. If pandas, DuckDB, or your warehouse handles it comfortably, Spark only adds cluster cost and complexity.
A shuffle moves rows between machines so that rows with the same key end up together. It writes data to disk, sends it over the network, and reads it back, and it happens for joins, groupBy, and sorts.
Transformations like filter and join only build a plan. Nothing runs until an action such as write, count, or show asks for a result, which lets Spark optimise the whole plan at once.
No. Spark runs in local mode on a laptop, using your CPU cores as executors. That is enough to read plans, use the Spark UI, and see shuffles, broadcast joins, and skew.