默认最简配置的单节点hadoop运行任务竟然出现“container is running beyond virtual memory limits”的错误 看错误是申请虚拟内存超出限制了,根据stackoverflow的指导,在yarn-site.xml添加下面的配置信息,然后重启hadoop然后再次运行任务就正常了
1 2 3 4 5 6 7 8 9 10 11 12 |
<property> <name>yarn.nodemanager.vmem-check-enabled</name> <value>false</value> <description>Whether virtual memory limits will be enforced for containers</description> </property> <property> <name>yarn.nodemanager.vmem-pmem-ratio</name> <value>4</value> <description>Ratio between virtual memory to physical memory when setting memory limits for containers</description> </property> |
粗略的感觉了 […]