Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # dev >> Need pointers to Master ZK Lock code

Varun Sharma 2013-03-14, 21:56
Copy link to this message
Re: Need pointers to Master ZK Lock code
You can look for the code in ActiveMasterManager.java. Also zookeeper has a
recipe for leader election, which is pretty straightforward (

Apache Curator (recently incubating) also has a leader election recipe

On Thu, Mar 14, 2013 at 2:56 PM, Varun Sharma <[EMAIL PROTECTED]> wrote:

> Hi folks,
> I wonder if someone could provide me some pointers to where the code which
> holds the zookeeper lock on the hbase/master node. Not that something is
> wrong there but I am trying to do something similar for another project,
> would appreciate any pointers.
> Thanks
> Varun