1.现象:执行hive sql 报错
Container [pid=400,containerID=container_1591856848191_0079_01_000044] is running 2068480B beyond the ‘PHYSICAL’ memory limit. Current usage:1.0 GB of 1 GB physical memory used; 2.5 GB of 2.1 GB virtual memory used. Killing container.
2.报错原因
默认container的容器的内存是1GB的2.1倍的虚拟内存,实际需要的内存为2.5GB,因此container被killing。
3.解决方法
默认memory.mb是1G,优化下面的配置,重启
优化前:
优化后: