Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

spring boot application connection closed to hbase zookeeper

spring boot application connection closed to hbase zookeeper

Expert Contributor

Hi Team,

We have spring boot application which take data or query data to HBase. When application initially start, it make a connection to zookeeper server remotely and later execute hbase query and get data according to requirement. But multiple time we get below error and application disconnected from zookeeper server.

 

 

2019-09-24 07:12:26.920  INFO 60447 --- [0.100.135:2181)] o.a.h.h.s.o.apache.zookeeper.ClientCnxn  : Unable to read additional data from server sessionid 0x26c4d39814f4b8e, likely server has closed socket, closing socket connection and attempting reconnect
..
2019-09-24 07:14:48.042  INFO 60447 --- [io-8181-exec-41] com.mems.energy.GetTimeseriseCompare     : org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=6, exceptions:
Tue Sep 24 07:07:58 UTC 2019, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=94368: row 'abc' on table 'table1' at region region1, abc

 

Kindly help me to resolve it.

 

Regards,

Vinay K

1 REPLY 1
Highlighted

Re: spring boot application connection closed to hbase zookeeper

Guru
Hi Vinay,

Can you search sessionid "0x26c4d39814f4b8e" in ZK server log to see if there any clue to see why the session got closed?

Thanks
Eric