Support Questions
Find answers, ask questions, and share your expertise

Hbase cluster going down


Active Hbase master goes down & and failover happened by making standby Hbase master as up.But after some time all the region servers goes down one by one and standby Hbase master also goes down and finally whole HBase cluster goes offline.We have started all the services make up.

Active Hbase Master LOGS : -

2018-01-17 16:22:29,895 ERROR [master/] master.ActiveMasterManager: master:16000-0x35ee3bbff600001,,,, baseZNode=/hbase Error deleting our own master address node org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired for /hbase/master at org.apache.zookeeper.KeeperException.create( at org.apache.zookeeper.KeeperException.create( at org.apache.zookeeper.ZooKeeper.getData( at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.getData( at org.apache.hadoop.hbase.zookeeper.ZKUtil.getData( at org.apache.hadoop.hbase.zookeeper.MasterAddressTracker.getMasterAddress( at org.apache.hadoop.hbase.master.ActiveMasterManager.stop( at org.apache.hadoop.hbase.master.HMaster.stopServiceThreads( at at 2018-01-17 16:22:29,895 INFO [master/] client.ConnectionManager$HConnectionImplementation: Closing zookeeper sessionid=0x15ee3bbf9910003 2018-01-17 16:22:29,897 INFO [master/] zookeeper.ZooKeeper: Session: 0x15ee3bbf9910003 closed 2018-01-17 16:22:29,897 INFO [post-om2:16000.activeMasterManager-EventThread] zookeeper.ClientCnxn: EventThread shut down 2018-01-17 16:22:29,899 INFO [master/] flush.MasterFlushTableProcedureManager: stop: server shutting down. 2018-01-17 16:22:29,899 INFO [master/] ipc.RpcServer: Stopping server on 16000 2018-01-17 16:22:29,900 INFO [RpcServer.listener,port=16000] ipc.RpcServer: RpcServer.listener,port=16000: stopping

Active /old Standby HBase Master logs : -

2018-01-17 16:23:06,025 INFO [post-om1:16000.activeMasterManager] master.ActiveMasterManager: Registered Active,16000,1507059524710 2018-01-17 16:24:46,275 INFO [post-om1:16000.activeMasterManager] master.AssignmentManager: Joined the cluster in 119ms, failover=true Post-os10 goes down logs in the post-om1: 2018-01-17 18:45:35,364 ERROR [PriorityRpcServer.handler=11,queue=1,port=16000] master.MasterRpcServices: Region server,16020,1507059587301 reported a fatal error: ABORTING region server,16020,1507059587301: IOE in log roller Cause: cannot get log writer at org.apache.hadoop.hbase.wal.DefaultWALProvider.createWriter( at org.apache.hadoop.hbase.regionserver.wal.FSHLog.createWriterInstance( at org.apache.hadoop.hbase.regionserver.wal.FSHLog.rollWriter( at at Caused by: Parent directory doesn't exist: /apps/hbase/data/WALs/,16020,1507059587301

2018-01-17 18:54:21,800 ERROR [PriorityRpcServer.handler=11,queue=1,port=16000] master.MasterRpcServices: Region server,16020,1513481333569 reported a fatal error: ABORTING region server,16020,1513481333569: IOE in log roller Cause: cannot get log writer

Sample Region server logs : -

2018-01-17 18:52:10,311 INFO [regionserver/] zookeeper.ClientCnxn: Opening socket connection to server Will not attempt to authenticate using SASL (unknown error) 2018-01-17 18:52:10,311 INFO [regionserver/] zookeeper.ClientCnxn: Socket connection established to, initiating session 2018-01-17 18:52:10,313 INFO [regionserver/] zookeeper.ClientCnxn: Unable to reconnect to ZooKeeper service, session 0x15ee3bbf9933b39 has expired, closing socket connection 2018-01-17 18:52:10,313 WARN [regionserver/] client.ConnectionManager$HConnectionImplementation: This client just lost it's session with ZooKeeper, closing it. It will be recreated next time someone needs it org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.connectionEvent( at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.process( at org.apache.zookeeper.ClientCnxn$EventThread.processEvent( at org.apache.zookeeper.ClientCnxn$ 2018-01-17 18:52:10,313 INFO [regionserver/] client.ConnectionManager$HConnectionImplementation: Closing zookeeper sessionid=0x15ee3bbf9933b39 2018-01-17 18:52:10,313 INFO [regionserver/] zookeeper.ClientCnxn: EventThread shut down 2018-01-17 18:52:10,335 INFO [main-SendThread(] zookeeper.ClientCnxn: Opening socket connection to server Will not attempt to authenticate using SASL (unknown error)



check hbase gc logs. if there is a GC pause that correlates with these log lines then you got your problem.

While master/RS is in GC, it fails to send heatbeat to zookeeper and the zookeeper node expires. In that case you can increase zookeeper timeout and increase ticktime in zookeeper config.

this is not directly related but do checkout:

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.