Support Questions
Find answers, ask questions, and share your expertise

Hive error - out of memory

Rising Star

Hi everyone,

 

Currently the Hive in ,my cluster keep on failing, when I check the stdout, it shows the following error, seems like there is an out of memory issue, how can I adjust the java heap space in cloudera?

 

Thu Mar 31 17:50:20 MYT 2016
JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera
using /usr/java/jdk1.7.0_67-cloudera as JAVA_HOME
using 5 as CDH_VERSION
using /opt/cloudera/parcels/CDH-5.4.9-1.cdh5.4.9.p0.19/lib/hive as HIVE_HOME
using /var/run/cloudera-scm-agent/process/760-hive-HIVESERVER2 as HIVE_CONF_DIR
using /opt/cloudera/parcels/CDH-5.4.9-1.cdh5.4.9.p0.19/lib/hadoop as HADOOP_HOME
using /var/run/cloudera-scm-agent/process/760-hive-HIVESERVER2/yarn-conf as HADOOP_CONF_DIR
#
# java.lang.OutOfMemoryError: Java heap space
# -XX:OnOutOfMemoryError="/usr/lib64/cmf/service/common/killparent.sh"
# Executing /bin/sh -c "/usr/lib64/cmf/service/common/killparent.sh"...

 

 

Thanks!

3 REPLIES 3

Contributor

Not sure if you figured it out, but Cloudera Manager has a section "Java Configuration Options for HiveServer2" where you can specify java arguments like heap space

Rising Star
Already get it fixed, thanks!

New Contributor

Can you share the solution?

 

Thanks you