hadoop 集群常见问题

1

Invalid resource request, requested memory < 0, or requested memory > max configured, requestedMemory=1536, maxMemory=1024

 conf.set("yarn.scheduler.maximum-allocation-mb","200");
 conf.set("yarn.app.mapreduce.am.resource.mb","200");
 conf.set("yarn.nodemanager.resource.memory-mb","200");

参考文献:
https://stackoverflow.com/questions/21005643/container-is-running-beyond-memory-limits

2

Container [pid=1623,containerID=container_1553048494869_0002_02_000001] is running beyond virtual memory limits. Current usage: 82.7 MB of 1 GB physical memory used; 2.7 GB of 2.1 GB virtual memory used. Killing container.

参考文献:
https://stackoverflow.com/questions/14110428/am-container-is-running-beyond-virtual-memory-limits

Failing this attempt.Diagnostics: Container [pid=5044,containerID=container_1572932711593_0002_02_000001] is running beyond virtual memory limits. Current usage: 115.0 MB of 1 GB physical memory used; 2.7 GB of 2.1 GB virtual memory used. Killing container.

虚拟内存不足

在etc/Hadoop/yarn-site.xml文件中,修改检查虚拟内存的属性为false,如下:

<property> 
    <name>yarn.nodemanager.vmem-check-enabled</name> 
    <value>false</value> 
</property>

参考:
https://www.cnblogs.com/hxsyl/p/6503010.html

Exception in thread "main" java.io.IOException: org.apache.hadoop.yarn.exceptions.InvalidResourceRequestException: Invalid resource request, requested memory < 0, or requested memory > max configured, requestedMemory=1536, maxMemory=1024

内存问题:
指定内存容量

conf.set("yarn.app.mapreduce.am.resource.mb", "500");// 指定资源分配器
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值