protected class AbstractMasterCoordinator.MasterElectionCommand extends BasicCoordinator.BasicCoordinatorCommand
Wait until it is the first bid, then it is elected as master.
Since fail-over in hadop map-reduce tasks is very fast. Using multiple-master is not a good choice expecially time out is too large.
Multiple masters are used in environment in which no fail-over.
| Constructor and Description |
|---|
AbstractMasterCoordinator.MasterElectionCommand(String appId) |
| Modifier and Type | Method and Description |
|---|---|
void |
doExecute()
Real method to do coordinator operation.
|
executepublic AbstractMasterCoordinator.MasterElectionCommand(String appId)
public void doExecute()
throws org.apache.zookeeper.KeeperException,
InterruptedException
BasicCoordinator.BasicCoordinatorCommanddoExecute in class BasicCoordinator.BasicCoordinatorCommandorg.apache.zookeeper.KeeperExceptionInterruptedExceptionCopyright © 2015. All Rights Reserved.