Explain it in 60 seconds
Driver OOM vs executor OOM
Data Engineering · Spark · Experienced
How do you troubleshoot out-of-memory errors in Spark? How is driver OOM different from executor OOM?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Driver OOM: collect, toPandas, large broadcasts or huge query plans.
- Executor OOM: big partitions, skew, large joins or aggregations, heavy UDFs.
- Container killed by YARN or Kubernetes usually means memory overhead is too low.
- Fixes: avoid collect, more partitions, handle skew, adjust memory and overhead.
- Check the Spark UI and logs to see which side failed.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.