Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DDE0670E7 for ; Wed, 21 Dec 2011 23:30:48 +0000 (UTC) Received: (qmail 51414 invoked by uid 500); 21 Dec 2011 23:30:46 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 51363 invoked by uid 500); 21 Dec 2011 23:30:46 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 51324 invoked by uid 500); 21 Dec 2011 23:30:46 -0000 Delivered-To: apmail-hadoop-hbase-user@hadoop.apache.org Received: (qmail 51311 invoked by uid 99); 21 Dec 2011 23:30:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 23:30:46 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.212.48] (HELO mail-vw0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 23:30:40 +0000 Received: by vbbfa15 with SMTP id fa15so7450520vbb.35 for ; Wed, 21 Dec 2011 15:30:19 -0800 (PST) Received: by 10.52.65.101 with SMTP id w5mr4966160vds.27.1324510219221; Wed, 21 Dec 2011 15:30:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.184.4 with HTTP; Wed, 21 Dec 2011 15:29:38 -0800 (PST) In-Reply-To: <1324509640.12026.YahooMailNeo@web121701.mail.ne1.yahoo.com> References: <1324509640.12026.YahooMailNeo@web121701.mail.ne1.yahoo.com> From: Ken Weiner Date: Wed, 21 Dec 2011 15:29:38 -0800 Message-ID: Subject: Re: Client with HTablePool can't connect after server restart To: user@hbase.apache.org, lars hofhansl Cc: "hbase-user@hadoop.apache.org" Content-Type: multipart/alternative; boundary=20cf307d042a1e39a004b4a29108 X-Virus-Checked: Checked by ClamAV on apache.org --20cf307d042a1e39a004b4a29108 Content-Type: text/plain; charset=ISO-8859-1 I experienced the problem in production with a fully distributed setup. I then reproduced the same problem in local mode from which I copied the error messages. The messages in production were exactly the same except that they contained a server name rather than "localhost". Should I expect to be able to restart HBase without having to restart my clients (each web server in a cluster has its own HTablePool)? On Wed, Dec 21, 2011 at 3:20 PM, lars hofhansl wrote: > 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 > To: hbase-user@hadoop.apache.org > 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 > --20cf307d042a1e39a004b4a29108--