Support Questions

Find answers, ask questions, and share your expertise

Weird HBase Error

avatar
Master Guru

I have code I have been using for a while and has worked.

But today my Java code calling Phoenix, ran into this:

: Initiating client connection, connectString=tspann:2181 sessionTimeout=90000 watcher=hconnection-0x4550bb580x0, quorum=tspann:2181, baseZNode=/hbase-unsecure 2016-12-15 16:49:44.898 INFO 11624 --- [42.140.21:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server 24221/242.21:2181. Will not attempt to authenticate using SASL (unknown error)

1 ACCEPTED SOLUTION

avatar
Master Guru

Strange error, but fixed due to disconnected network.

So connection timeout error.

View solution in original post

4 REPLIES 4

avatar
Guru

That is not a real error. ZK is just saying that it won't do SASL when connecting to the server (because this is not a secure cluster). You can ignore it.

avatar
Super Collaborator

This is just an information message during the connection. If your application doesn't work, check that zookeeper as well as HBase are started.

avatar
Master Guru

Strange error, but fixed due to disconnected network.

So connection timeout error.

avatar
Master Guru

:51:02.642 WARN 11624 --- [ main] o.a.h.h.zookeeper.RecoverableZooKeeper : Possibly transient ZooKeeper, quorum=tspann:2181, exception=org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase-unsecure/hbaseid 2016-12-15 16:51:03.644 INFO 11624 --- [42.140.21:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server 92.242.140.21/92.242.140.21:2181. Will not attempt to authenticate using SASL (unknown error) 2016-12-15 16:52:19.044 WARN 11624 --- [42.140.21:2181)] org.apache.zookeeper.ClientCnxn : Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.ConnectException: Operation timed out at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_91] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_91] at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) ~[zookeeper-3.4.6.jar!/:3.4.6-1569965] at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) ~[zookeeper-3.4.6.jar!/:3.4.6-1569965]