Skip to content

MediumScenarioSpark production scenarios

Your Spark job on a 50-node cluster fails with executor lost and OOM during a groupBy. What do you check first?

What a good answer covers

Check partition size and shuffle spill in the UI, then raise spark.sql.shuffle.partitions or enable AQE coalescing and splitting, and avoid collect_list on huge groups. Only then raise executor memory or memoryOverhead, since more memory without fixing skew just moves the failure.

More on Spark production scenarios

Flashcards for this topic