SpinTheMic
Pro

Interview practice question

Executors killed with container memory errors

Data Engineering · Spark · Intermediate

Executors keep getting killed with "container killed by YARN for exceeding memory limits" even though heap usage looks fine. Why?

What a strong answer covers

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

  • Memory outside the JVM heap exceeded the container limit.
  • PySpark Python workers, Arrow buffers and native memory use overhead memory.
  • Increase spark.executor.memoryOverhead.
  • Reduce Python UDF use or batch sizes.
  • Check if partitions are too large.
Practise this topic

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

See all topics