You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Nicolas Spiegelberg (JIRA)" <ji...@apache.org> on 2010/07/23 22:45:52 UTC

[jira] Commented: (HBASE-2870) Add Backup CLI Option to HMaster

    [ https://issues.apache.org/jira/browse/HBASE-2870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891783#action_12891783 ] 

Nicolas Spiegelberg commented on HBASE-2870:
--------------------------------------------

Add option to GNU Parser in HMaster.doMain.  Inside the HMaster constructor, extremely rough pseudo-code to explain what we should do

{quote}
if (backup) { 
  while (not zookeeper.hasZNode("/hbase/master") { sleep{10000) }
}

while ( zookeeper.setZNode("/hbase/master", this.address) != sucess) { sleep (10000) } 
{quote}

So, the backup will wait for the primary to create the master ZNode before it begins it's polling loop.  The assumption being that you will be monitoring your cluster during startup and will be waiting to observe primary HMaster startup.

> Add Backup CLI Option to HMaster
> --------------------------------
>
>                 Key: HBASE-2870
>                 URL: https://issues.apache.org/jira/browse/HBASE-2870
>             Project: HBase
>          Issue Type: New Feature
>            Reporter: Nicolas Spiegelberg
>            Assignee: Karthik Ranganathan
>            Priority: Minor
>             Fix For: 0.90.0
>
>
> The HMaster main() should allow a toggle like --backup, which forces it to be a secondary master on startup versus a primary candidate.  That way, we can start up multiple masters at once and deterministically know which one will be the original primary.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.