Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 61901 invoked from network); 19 Feb 2009 00:49:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2009 00:49:29 -0000 Received: (qmail 34784 invoked by uid 500); 19 Feb 2009 00:49:28 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 34770 invoked by uid 500); 19 Feb 2009 00:49:27 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 34756 invoked by uid 99); 19 Feb 2009 00:49:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 16:49:27 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 00:49:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2B5B9234C4B1 for ; Wed, 18 Feb 2009 16:49:02 -0800 (PST) Message-ID: <1731327380.1235004542176.JavaMail.jira@brutus> Date: Wed, 18 Feb 2009 16:49:02 -0800 (PST) From: "Nitay Joffe (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-1145) Ensure that there is only 1 Master with Zookeeper In-Reply-To: <855348060.1232564759752.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-1145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nitay Joffe updated HBASE-1145: ------------------------------- Attachment: hbase-1145.patch First stab at this. In this patch: - Remove "hbase.master" hbase-default.xml. This property is not required anymore, but it still used if it exists. Replaced "local" mode with a new boolean property, "run.distributed" which defaults to false. Local mode is used if "hbase.master" is either missing or null, and "run.distributed" is false. - Add property for master port. When "hbase.master" does not exist, we construct the master's address by looking up our hostname and appending the port to that. - HConnectionManager/HRegionServer read master address form ZooKeeper. - Master startup is done by a race to grab the ephemeral ZNode in ZooKeeper. The user is free to spin up as many masters as they like. When a master starts up it waits until the ZNode is available (either because it didn't exist or because the master owning it died and triggered a NodeDeleted event to the watcher). Once it's available, the master tries to write its address to it. Whoever wins continues with its initialization and becomes the master while the others resume watching the ZNode. Note that currently if a master goes down and another one takes over the regionservers will not find it. I will file a separate issue for the regionservers to check/watch the master address in ZooKeeper. > Ensure that there is only 1 Master with Zookeeper > ------------------------------------------------- > > Key: HBASE-1145 > URL: https://issues.apache.org/jira/browse/HBASE-1145 > Project: Hadoop HBase > Issue Type: Sub-task > Reporter: Jean-Daniel Cryans > Assignee: Nitay Joffe > Attachments: hbase-1145.patch > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.