SpinTheMic
Pro

Interview practice question

Cluster busy but job uses few cores

Data Engineering · Spark · Beginner

Your cluster has 400 cores, but the job's main stage only runs 8 tasks. Why, and what do you do?

What a strong answer covers

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

  • The stage has only 8 partitions.
  • Often caused by reading a few large unsplittable files, like gzip CSV.
  • Or a coalesce earlier in the code.
  • Repartition to increase parallelism, or use splittable formats.
  • Check the number of tasks per stage in the UI.
Practise this topic

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

See all topics