You can look for the code in ActiveMasterManager.java. Also zookeeper has a recipe for leader election, which is pretty straightforward ( http://zookeeper.apache.org/doc/trunk/recipes.html#sc_leaderElection).
Apache Curator (recently incubating) also has a leader election recipe implementation. Enis 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 >
