# How to Read the Spark UI: Jobs, Stages, Shuffles and Joins

> A plain guide to the Spark UI: what jobs, stages, tasks and shuffles mean, how to spot a slow join, and how to practise on your laptop free.

Page: https://datautility.in/blog/read-the-spark-ui-jobs-stages-shuffle
This is the Markdown copy of the page. The tool itself runs in the browser: your files are processed on your own device and are not uploaded.

Published 2026-11-27 · Analyze & protect · spark ui explained, spark stages and tasks, spark shuffle, spark ui tutorial, broadcast join vs sort merge join, spark performance tuning

The Spark UI answers one question: what did Spark actually do with my code? Once you can read it, slow jobs stop being a mystery. Here is what each part means, and an exercise for each that you can run in the free Spark Lab.

Open the tool: [Spark Lab](https://datautility.in/sparklab)

## Jobs: one per action

Spark is lazy. filter, select and groupBy only describe work. An action such as show(), count() or write starts a job. In the Jobs tab, one action usually means one job. Reading a CSV with inferSchema can start extra small jobs, because Spark reads the file to guess the column types.

## Stages: split by shuffles

A job is cut into stages wherever data must move between partitions. Narrow transformations (filter, select, withColumn) stay in one stage. Wide ones (groupBy, join, distinct, orderBy) need a shuffle, so they start a new stage. In the Stages tab, Shuffle Write on one stage and Shuffle Read on the next is that data moving.

## Tasks: one per partition

Each stage runs one task per partition. Too few tasks and your cores sit idle; too many tiny ones and the overhead adds up. repartition changes the count with a shuffle, coalesce lowers it without one.

## The SQL / DataFrame tab: the plan

Click a query to see its plan as a diagram. Exchange boxes are shuffles. For joins, BroadcastHashJoin means the small table was copied to every task, which is fast. SortMergeJoin means both sides were shuffled and sorted, which is the usual reason a join is slow.

## The Storage tab: what is cached

After cache() and an action, the table appears here with its size in memory. If it is not listed, it was not cached, usually because no action ran after cache().

## Practise each one

The [Spark Lab](https://datautility.in/pyspark-spark-ui-lab) has a lesson for each part above, on 200,000 sample orders, with a note on what to look for. It runs on your laptop with one Docker command.

## How to use the Spark Lab: step by step

1. Start the Spark Lab and connect
2. Run the groupBy lesson and open the Stages tab
3. Run the join lessons and compare the plans

## When to use the Spark Lab

- Finding why a Spark job is slow
- Explaining stages and shuffles in an interview
- Checking whether a join is broadcast
- Confirming a table is cached

Tip: When a job is slow, check the Stages tab for one task that takes much longer than the others. That usually means skewed data: one key with far more rows than the rest.

## Also try

- [Learn PySpark and the Spark UI free](https://datautility.in/blog/learn-pyspark-and-the-spark-ui-free)

## More guides

- [Data Profiler: Check Data Quality Before You Use It](https://datautility.in/blog/data-profiler-check-data-quality)
- [Compare Two CSV or Excel Files: Find Added, Removed and Changed Rows](https://datautility.in/blog/compare-two-csv-files-find-differences)
- [Data Masking: Hide Emails, Phones and Names Before Sharing](https://datautility.in/blog/data-masking-hide-emails-phones-pii)
