2019独角兽企业重金招聘Python工程师标准>>>
Container [pid=31414,containerID=container_1437643302003_10571_01_000215] is running beyond virtual memory limits. Current usage: 144.5 MB of 1 GB physical memory used; 2.6 GB of 2.1 GB virtual memory used. Killing container.
如果报这个错误:map任务申请1GB内存,虚拟内存最大为2.1GB ,然而2.6GB>2.1G 从而跑出异常
mapreduce.map.memory.mb 512m
mapreduce.reduce.memory.mb 1024m
mapreduce.map.java.opts 409m
mapreduce.reduce.java.opts 819m
这样就不会出现上述问题
mapreduce.map.java.opts < mapreduce.map.memory.mb
mapreduce.reduce.java.opts <mapreduce.reduce.memory.mb