SpinTheMic
Pro

Explain it in 60 seconds

Tuning shuffle partitions

Data Engineering · Spark · Intermediate

What is spark.sql.shuffle.partitions and how do you tune it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • It sets the number of partitions after a shuffle, default 200.
  • Too few gives huge partitions that spill or OOM.
  • Too many gives tiny tasks and overhead.
  • Size it so post-shuffle partitions are around 100 to 200 MB.
  • With AQE, coalescing adjusts it automatically, so set a reasonably high initial value.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics