Class ReplicationSyncUp
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.replication.regionserver.ReplicationSyncUp
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
@Private
public class ReplicationSyncUp
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
In a scenario of Replication based Disaster/Recovery, when hbase Master-Cluster crashes, this
tool is used to sync-up the delta from Master to Slave using the info from ZooKeeper. The tool
will run on Master-Cluster, and assume ZK, Filesystem and NetWork still available after hbase
crashes
hbase org.apache.hadoop.hbase.replication.regionserver.ReplicationSyncUp
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate Set<ServerName>static voidMain programintMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
SLEEP_TIME
- See Also:
-
-
Constructor Details
-
ReplicationSyncUp
public ReplicationSyncUp()
-
-
Method Details
-
main
Main program- Throws:
Exception
-
getLiveRegionServers
private Set<ServerName> getLiveRegionServers(ZKWatcher zkw) throws org.apache.zookeeper.KeeperException - Throws:
org.apache.zookeeper.KeeperException
-
claimReplicationQueues
private void claimReplicationQueues(ZKWatcher zkw, ReplicationSourceManager mgr) throws ReplicationException, org.apache.zookeeper.KeeperException - Throws:
ReplicationExceptionorg.apache.zookeeper.KeeperException
-
run
- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-