is running 221518336B beyond the 'VIRTUAL' memory limit. Current usage: 74.0 MB of 1 GB ph


在编写myjob时,报错:is running 221518336B beyond the 'VIRTUAL' memory limit. Current usage: 74.0 MB of 1 GB physical memory used; 2.3 GB of 2.1 GB virtual memory used. Killing container.
此问题原因是container在申请多余的内存时,被resouremanager杀掉了,
此处可修改hadoop/etc/mapred-site.xml
添加配置信息

  mapreduce.map.memory.mb
  1536


  mapreduce.map.java.opts
  -Xmx1024M


  mapreduce.reduce.memory.mb
  3072


  mapreduce.reduce.java.opts
  -Xmx2560M

然后重启整个haodoop模块
重新提交任务