I frequently get the error message in hive container running beyond physical memory limits. Current usage: 4.7 GB of 4GB physical memory used; 12.1 GB of 8.4 GB virtual memory used. Killing container
I execute this in scala using jdbc connection.
My default execution engine is tez. If change hive execution engine to mr it is working fine.
If I execute the same query in hive cli, on tez it works fine.
As said in various forum I tried to change the container size, but it doesnt help.
SET hive.tez.container.size=20000
SET hive.tez.java.opts=-Xmx10240m -XX:NewRatio=8
It seems above settings doesnt effectively increase the container size.
Also it is hogging the whole cluster.
My question is:
- Is there any way which we can restrict number of containers spawned for a hive query, so that cluster doesnt halt because of the big queries?
- How can we increase the size of container?
Is there any way out other than increasing the container size?
hive version: 1.2.1
hdp: 2.3.2