Increasing "Java Heap Size of HiveServer2 in Bytes" in Cloudera Manager does not take effect if HADOOP_CLIENT_OPTS is also Set on the BDA (Doc ID 2004720.1)

Last updated on APRIL 29, 2015

Applies to:

Big Data Appliance Integrated Software - Version 2.2.1 and later
Linux x86-64

Symptoms

In Cloudera Manager (CM) increasing the "Java Heap Size of HiveServer2 in Bytes" does not take effect if the Client heap size has also been increased via the "MapReduce Client Environment Safety Valve for hadoop-env.sh" to something like:  HADOOP_CLIENT_OPTS=-Xmx2g.


"Java Heap Size of HiveServer2 in Bytes" is set in CM via:
Services > hive > Configuration > View and Edit > HiveServer2 > Resource Management > Java Heap Size of HiveServer2 in Bytes

"HADOOP_CLIENT_OPTS" is set in CM via:
Services > Mapreduce > Configuration > View and Edit > Search for "MapReduce Client Environment Safety Valve for hadoop-env.sh"


For example if "HADOOP_CLIENT_OPTS=-Xmx2g" then increasing "Java Heap Size of HiveServer2 in Bytes" to 2GB from the default of 256 MB has no effect.

Aafter increasing "Java Heap Size of HiveServer2 in Bytes" to 2GB:


Note: -Xmx268435456.  There is no change from the default of 256MB even though the  "Java Heap Size of HiveServer2 in Bytes" was set to 2GB.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms