spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Silvio Fiorito <>
Subject RE: Spark on YARN memory consumption
Date Fri, 11 Mar 2016 13:36:40 GMT
Hi Jan,

Yes what you’re seeing is due to YARN container memory overhead. Also, typically the memory
increments for YARN containers is 1GB.

This gives a good overview:



From: Jan Štěrba<>
Sent: Friday, March 11, 2016 8:27 AM
To: User<>
Subject: Spark on YARN memory consumption


I am exprimenting with tuning an on demand spark-cluster on top of our
cloudera hadoop. I am running Cloudera 5.5.2 with Spark 1.5 right now
and I am running spark in yarn-client mode.

Right now my main experimentation is about spark.executor.memory
property and I have noticed a strange behaviour.

When I set spark.executor.memory=512M several things happen:
- per each executor a container with 1GB memory is requested and
assigned from YARN
- in Spark UI I can see that each executor has 256M memory

So what I am seeing is that spark requests 2x the memory but the
executor has only 1/4 of what has been requested. Why is that?


Jan Sterba | |

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message