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:
- Calling
collect()on massive datasets. - Broadcasting a table larger than driver memory (
spark.driver.memory). - Excessive broadcast joins exhausting driver heap during serialization.
- Lineage graph explosion in deep iterative loops (solve with
localCheckpoint()).