Is this is local mode? In local mode ports of Master and RegionServer might change and the client cannot (be expected to) deal with that.
________________________________ From: Ken Weiner <[email protected]> To: [email protected] Sent: Wednesday, December 21, 2011 3:06 PM Subject: Client with HTablePool can't connect after server restart 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
