A node in my YARN cluster has 64GB memory and 24 cores. I set the following properties in the yarn-site.xml:
yarn.nodemanager.reso
try something like:
<property>
<name>mapreduce.map.memory.mb</name>
<value>1024</value>
</property>
<property>
<name>mapreduce.reduce.memory.mb</name>
<value>2048</value>
</property>
You need to tell YARN how to break down the memory to containers so for instance if you set the memory per container to 2GB will give you 16 containers
<name>yarn.scheduler.minimum-allocation-mb</name>
<value>2048</value>