java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Re: Hive 0.13.0 Memory Leak
    via by Bryan Jeffrey,
  • Re: HiveServer2 and Tez
    via by Unknown author,
  • Re: HiveServer2 and Tez
    via by Gopal V,
  • RE: HiveServer2 and Tez
    via by Bikas Saha,
  • Everything runs but dies after a few days with the Java heap space memory error - and with no activity on cluster. It failed most resently after 5 days. I tried to fix it after noticing the SLF4J library duplication, wondering if conflicting libraries would be causing the error, but still fails. Nagios reports HiveServer2 "Flapping" HiveServer2.log output: 22488-2015-03-07 22:19:08,359 INFO [HiveServer2-Handler-Pool: Thread-13139]: thrift.ThriftCLIService ( - Client protocol version: HIVE_CLI_SERVICE_PROTOCOL_V6 22489-2015-03-07 22:19:19,056 ERROR [HiveServer2-Handler-Pool: Thread-13139]: thrift.ProcessFunction ( - Internal error processing OpenSession 22490:java.lang.OutOfMemoryError: Java heap space 22491-2015-03-07 22:19:22,515 INFO [Thread-6]: server.HiveServer2 ( - Shutting down HiveServer2 22492-2015-03-07 22:19:22,516 INFO [Thread-6]: thrift.ThriftCLIService ( - Thrift server has stopped 22493-2015-03-07 22:19:22,516 INFO [Thread-6]: service.AbstractService ( - Service:ThriftBinaryCLIService is stopped. 22494-2015-03-07 22:19:27,078 INFO [Thread-6]: service.AbstractService ( - Service:OperationManager is stopped. 22495-2015-03-07 22:19:27,078 INFO [Thread-6]: service.AbstractService ( - Service:SessionManager is stopped. 22496:2015-03-07 22:19:36,096 WARN [Thread-0]: util.ShutdownHookManager ( - ShutdownHook 'ClientFinalizer' failed, java.lang.OutOfMemoryError: Java heap space 22497:java.lang.OutOfMemoryError: Java heap space
    via by Rupert Bailey,
    • java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space at org.apache.hive.service.cli.session.HiveSessionProxy.invoke( at org.apache.hive.service.cli.session.HiveSessionProxy.access$000( at org.apache.hive.service.cli.session.HiveSessionProxy$ at Method) at at at org.apache.hadoop.hive.shims.HadoopShimsSecure.doAs( at org.apache.hive.service.cli.session.HiveSessionProxy.invoke( at com.sun.proxy.$Proxy15.executeStatementAsync(Unknown Source) at org.apache.hive.service.cli.CLIService.executeStatementAsync( at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement( at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult( at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult( at org.apache.thrift.ProcessFunction.process( at org.apache.thrift.TBaseProcessor.process( at org.apache.hive.service.auth.TSetIpAddressProcessor.process( at org.apache.thrift.server.TThreadPoolServer$ at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( at java.util.concurrent.ThreadPoolExecutor$ at
    No Bugmate found.