internalsGet Pro

Module 08 · Lesson 3 of 14Pro

Spark architecture: driver, executors and tasks

Level
Intermediate
Topic
Batch processing with Spark
Reading time
17 min

When you finish this page you can

  1. Say which work runs on the Spark driver and which runs on the executors, for each line of a PySpark job.
  2. Trace how one action becomes a job, its stages and their tasks, and count the task slots a cluster offers.
  3. Predict how long a stage takes in waves of tasks, and when adding executors stops helping.
  4. Explain what happens when a task, an executor or the driver fails, and what Kartly does about each.

Builds on 2 lessons

Start with lesson 113 min
  1. Distributed batch processing: beyond one machine13 min
  2. MapReduce: the idea behind big data17 min

320 GB of executors, and the job died at 1 GB

is an online store in India. A year into its growth, its apps record about 200 million click events a day. A Kafka sink writes them as files to S3, one folder per day. Meera, a data engineer on Kartly’s data team, now processes them with Apache Spark 4.3 on Kubernetes in AWS Mumbai.

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