Updated on 2024-12-13 GMT+08:00

Why Data loading Fails During off heap?

Question

Why Data Loading fails during off heap?

Answer

YARN Resource Manager will consider (Java heap memory + spark.yarn.am.memoryOverhead) as memory limit, so during the off heap, the memory can exceed this limit.

You need to set spark.yarn.am.memoryOverhead in the spark-defaults.conf file to increase the memory size.