QuestionQ6

VerifiedTroubleshooting and Tuning Apache Spark DataFrame API Applications.

Which of the following cluster configurations is most likely to encounter an out-of-memory error because of data skew in a single partition?

Question Image

Note: each configuration has approximately the same compute capacity, using 100 GB of RAM and 200 cores.

Explanation

A skewed partition is processed by a single task, whose memory is limited by the executor running it; memory from other executors is not combined for that task. Scenario #6 provides only 12.5 GB per executor, the smallest per-executor memory allocation, so it has the least capacity for an unusually large partition and is the most susceptible to an out-of-memory error. Spark defines executor memory as the memory available to each executor process.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!