hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Weiner <...@gumgum.com>
Subject Client with HTablePool can't connect after server restart
Date Wed, 21 Dec 2011 23:06:55 GMT
Our Java client uses HTablePool and is not able to connect to the
server after a server reboot (stop-hbase.sh followed by start-hbase.sh).
 Partial stack trace:

java.net.ConnectException: Connection refused
 at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
 at
org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:408)
 at
org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:328)
at
org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:883)
         ...
at
org.apache.hadoop.hbase.client.HTablePool.createHTable(HTablePool.java:133)
at org.apache.hadoop.hbase.client.HTablePool.getTable(HTablePool.java:96)

Furthermore, the following message is continuously printed:

- Socket connection established to localhost/127.0.0.1:2181, initiating
session
- Unable to read additional data from server sessionid 0x1345e2d625d0009,
likely server has closed socket, closing socket connection and attempting
reconnect

After an HBase restart, is there any way to restore the HBase client (which
is part of a web application) without having to restart it?

Environment:
- HBase 0.90.4
- HBase-Managed Zookeeper 3.3.2-1031432
- Ubuntu Server

Thanks,

-Ken

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message