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


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(
    at java.lang.String.<init>(
    at java.nio.HeapCharBuffer.toString(





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