Resolving "java.lang.OutOfMemoryError: Java heap space" in the HiveServer2 Process.

(Doc ID 1618311.1)

Last updated on JANUARY 30, 2014

Applies to:

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

Symptoms

Hive queries are not running to completion or erroring out. The application or the HiveServer2 logs may show the following error

ERROR org.apache.thrift.ProcessFunction: Internal error processing FetchResults
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOfRange(Arrays.java:3209)
    at java.lang.String.<init>(String.java:215)
    at java.nio.HeapCharBuffer.toString(HeapCharBuffer.java:542)

...

Changes

 None

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