當運行Hadoop的任務,我得到了以下錯誤的Hadoop Containder運行超出了物理內存限制
Container [pid=12850,containerID=container_1489504424139_0638_01_201123] is running beyond physical memory limits. Current usage: 4.0 GB of 4 GB physical memory used; 8.8 GB of 8.4 GB virtual memory used. Killing container.
我在搜索計算器,它給了我幾頁(Link1,Link2)。但它沒有幫助。我仍然有錯誤。我目前的mapred-site.xml文件如下:
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
<property>
<name>mapreduce.map.java.opts</name>
<value> -Xmx3072m</value>
</property>
<property>
<name>mapreduce.reduce.java.opts</name>
<value> -Xmx6144m</value>
</property>
<property>
<name>mapreduce.map.memory.mb</name>
<value>4096</value>
</property>
<property>
<name>mapreduce.reduce.memory.mb</name>
<value>8192</value>
</property>
<property>
<name>mapred.child.java.opts</name>
<value>-Xmx2048m</value>
</property>
</configuration>
謝謝!