Skip to main content
InterviewHubPRO
Section Overview
Q34

Question 34 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

68%
Apache Spark Big Data (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

What is the Spark Driver OOM problem and how do you resolve it?

senior Levelapache-sparkAdvanced Internals

In Simple Words: Driver crashes occur when:

  1. Calling collect() on massive datasets.
  2. Broadcasting a table larger than driver memory (spark.driver.memory).
  3. Excessive broadcast joins exhausting driver heap during serialization.
  4. Lineage graph explosion in deep iterative loops (solve with localCheckpoint()).