Container [pid=37559,containerID=container_1628828462188_0002_01_000002] is running 325274112B beyond the 'VIRTUAL' memory limit. Current usage: 262.8 MB of 1 GB physical memory used; 2.4 GB of 2.1 GB virtual memory used. Killing container.
在mapred-site.xml中添加
<property>
<name>mapreduce.map.memory.mb</name>
<value>1536</value>
</property>
<property>
<name>mapreduce.map.java.opts</name>
<value>-Xmx1024M</value>
</property>
<property>
<name>mapreduce.reduce.memory.mb</name>
<value>3072</value>
</property>
<property>
<name>mapreduce.reduce.java.opts</name>
<value>-Xmx2560M</value>
</property>
参考资料:
https://blog.csdn.net/cao1315020626/article/details/101712223