[ 
https://issues.apache.org/jira/browse/HIVE-9893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14538522#comment-14538522
 ] 

Fernando Sclavo commented on HIVE-9893:
---------------------------------------

Exactly same here, hiveserver runs fine for about a week and then fails with 
following error in hiverserver2.log:

2015-05-09 11:18:58,968 INFO  [HiveServer2-Handler-Pool: Thread-19209]: 
thrift.ThriftCLIService (ThriftCLIService.java:OpenSession(232)) - Client 
protocol version: HIVE_CLI_SERVICE_PROTOCOL_V6
2015-05-09 11:20:31,085 INFO  [HiveServer2-Handler-Pool: Thread-11901]: 
thrift.ThriftCLIService (ThriftCLIService.java:OpenSession(232)) - Client 
protocol version: HIVE_CLI_SERVICE_PROTOCOL_V6
2015-05-09 11:22:20,078 ERROR [HiveServer2-Handler-Pool: Thread-20680]: 
server.TThreadPoolServer (TThreadPoolServer.java:run(215)) - Error occurred 
during processing of message.
java.lang.RuntimeException: org.apache.thrift.transport.TTransportException
        at 
org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:219)
        at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:190)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.thrift.transport.TTransportException
        at 
org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
        at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
        at 
org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:178)
        at 
org.apache.thrift.transport.TSaslServerTransport.handleSaslStartMessage(TSaslServerTransport.java:125)
        at 
org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:253)
        at 
org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)
        at 
org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
        ... 4 more
2015-05-09 11:24:52,488 ERROR [HiveServer2-Handler-Pool: Thread-19209]: 
thrift.ProcessFunction (ProcessFunction.java:process(41)) - Internal error 
processing OpenSession
java.lang.OutOfMemoryError: Java heap space
2015-05-09 11:25:02,446 ERROR [HiveServer2-Handler-Pool: Thread-30918]: 
server.TThreadPoolServer (TThreadPoolServer.java:run(215)) - Error occurred 
during processing of message.


> HiveServer2 java.lang.OutOfMemoryError: Java heap space
> -------------------------------------------------------
>
>                 Key: HIVE-9893
>                 URL: https://issues.apache.org/jira/browse/HIVE-9893
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>    Affects Versions: 0.14.0
>         Environment: Vmware Pseudo cluster 
> HDP 2.2 Ambari vanilla install 
> Centos 6.5
>            Reporter: Rupert Bailey
>              Labels: Hadoop, Hive, Tez, Thrift
>
> 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 (ThriftCLIService.java:OpenSession(232)) - Client 
> protocol version: HIVE_CLI_SERVICE_PROTOCOL_V6
> 22489-2015-03-07 22:19:19,056 ERROR [HiveServer2-Handler-Pool: Thread-13139]: 
> thrift.ProcessFunction (ProcessFunction.java:process(41)) - Internal error 
> processing OpenSession
> 22490:java.lang.OutOfMemoryError: Java heap space
> 22491-2015-03-07 22:19:22,515 INFO  [Thread-6]: server.HiveServer2 
> (HiveServer2.java:stop(299)) - Shutting down HiveServer2
> 22492-2015-03-07 22:19:22,516 INFO  [Thread-6]: thrift.ThriftCLIService 
> (ThriftCLIService.java:stop(137)) - Thrift server has stopped
> 22493-2015-03-07 22:19:22,516 INFO  [Thread-6]: service.AbstractService 
> (AbstractService.java:stop(125)) - Service:ThriftBinaryCLIService is stopped.
> 22494-2015-03-07 22:19:27,078 INFO  [Thread-6]: service.AbstractService 
> (AbstractService.java:stop(125)) - Service:OperationManager is stopped.
> 22495-2015-03-07 22:19:27,078 INFO  [Thread-6]: service.AbstractService 
> (AbstractService.java:stop(125)) - Service:SessionManager is stopped.
> 22496:2015-03-07 22:19:36,096 WARN  [Thread-0]: util.ShutdownHookManager 
> (ShutdownHookManager.java:run(56)) - ShutdownHook 'ClientFinalizer' failed, 
> java.lang.OutOfMemoryError: Java heap space
> 22497:java.lang.OutOfMemoryError: Java heap space



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to