Replies: 3
We have hiveserver2 crashing once it two days in average.
We connect with jdbc using auth=noSal and hive.server2.authentication=nosasl (according to
There are a lot of kinds of errors in the hiveserver2.log addressing Java heap space:
ERROR [BoneCP-pool-watch-thread]: bonecp.CustomThreadFactory (CustomThreadFactory.java:uncaughtException(69)) – Uncaught Exception in thread BoneCP-pool-watch-thread java.lang.OutOfMemoryError: Java heap space
______________________________________________________
WARN [HiveServer2-Handler-Pool: Thread-30]: thrift.ThriftCLIService (ThriftCLIService.java:ExecuteStatement(407)) – Error executing statement:
java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:84)
….
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.OutOfMemoryError: Java heap space
______________________________________________________
ERROR [BoneCP-pool-watch-thread]: bonecp.BoneCP (BoneCP.java:obtainInternalConnection(292)) – Failed to acquire connection to jdbc:mysql://my-host/hive?createDatabaseIfNotExist=true. Sleeping for 7000 ms. Attempts left: 4 java.sql.SQLException: java.lang.OutOfMemoryError: Java heap space at om.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
______________________________________________________
ERROR [CuratorFramework-0]: imps.CuratorFrameworkImpl (CuratorFrameworkImpl.java:logError(534)) – Background operation retry gave up
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)