Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9E179FCA for ; Wed, 28 Mar 2012 21:41:53 +0000 (UTC) Received: (qmail 56386 invoked by uid 500); 28 Mar 2012 21:41:53 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 56328 invoked by uid 500); 28 Mar 2012 21:41:53 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 56155 invoked by uid 99); 28 Mar 2012 21:41:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2012 21:41:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2012 21:41:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E1DD034B6FD for ; Wed, 28 Mar 2012 21:41:29 +0000 (UTC) Date: Wed, 28 Mar 2012 21:41:29 +0000 (UTC) From: "Matteo Bertozzi (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <554196201.30165.1332970889945.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1718073028.29944.1332967167950.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5666) RegionServer doesn't retry to check if base node is available MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-5666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240757#comment-13240757 ] Matteo Bertozzi commented on HBASE-5666: ---------------------------------------- @Zhihong Yu: Probably a retry loop is the simplest solution... But retry for how long? an infinite loop hoping that the node become available seems wrong, maybe we can add another parameter to define a ZK_RETRY_TIMEOUT. > RegionServer doesn't retry to check if base node is available > ------------------------------------------------------------- > > Key: HBASE-5666 > URL: https://issues.apache.org/jira/browse/HBASE-5666 > Project: HBase > Issue Type: Bug > Components: regionserver, zookeeper > Reporter: Matteo Bertozzi > Attachments: hbase-1-regionserver.log, hbase-2-regionserver.log, hbase-3-regionserver.log, hbase-master.log, hbase-regionserver.log, hbase-zookeeper.log > > > I've a script that starts hbase and a couple of region servers in distributed mode (hbase.cluster.distributed = true) > {code} > $HBASE_HOME/bin/start-hbase.sh > $HBASE_HOME/bin/local-regionservers.sh start 1 2 3 > {code} > but the region servers are not able to start... > It seems that during the RS start the the znode is still not available, and HRegionServer.initializeZooKeeper() check just once if the base not is available. > {code} > 2012-03-28 21:54:05,013 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: STOPPED: Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the master. > 2012-03-28 21:54:08,598 FATAL org.apache.hadoop.hbase.regionserver.HRegionServer: ABORTING region server localhost,60202,1332964444824: Initialization of RS failed. Hence aborting RS. > java.io.IOException: Received the shutdown message while waiting. > at org.apache.hadoop.hbase.regionserver.HRegionServer.blockAndCheckIfStopped(HRegionServer.java:626) > at org.apache.hadoop.hbase.regionserver.HRegionServer.initializeZooKeeper(HRegionServer.java:596) > at org.apache.hadoop.hbase.regionserver.HRegionServer.preRegistrationInitialization(HRegionServer.java:558) > at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:672) > at java.lang.Thread.run(Thread.java:662) > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira