internalsGet Pro

Module 08 · Lesson 13 of 14Pro

Reading the Spark UI to debug jobs

Level
Intermediate
Topic
Batch processing with Spark
Reading time
17 min

When you finish this page you can

  1. Walk from a slow Spark job to its slowest stage, task and plan operator using the Jobs, Stages and SQL tabs.
  2. Read a stage’s summary metrics by comparing the median task with the slowest one, and name the pattern behind the gap.
  3. Choose the first change for a slow stage from what the UI shows, instead of adding executors by default.
  4. Keep a job’s UI after it ends, with event logs and the history server.

Builds on 2 lessons

Start with lesson 317 min
  1. Spark architecture: driver, executors and tasks17 min
  2. Shuffles: the most expensive step in Spark17 min

A 25-minute job still running after two hours

is an online store in India with about 500,000 orders a day and about 1 billion orders since launch. Meera, a data engineer on its data team, has written a nightly Spark job called nightly_order_metrics. It reads every order since launch from the orders change log, Parquet files in S3, and splits each day’s revenue into new customers, returning customers and guests for Daniel’s 07:00 finance report.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan