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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
private Set<ServerName>
static void
Main programint
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
ReplicationException
org.apache.zookeeper.KeeperException
-
run
- Specified by:
run
in interfaceorg.apache.hadoop.util.Tool
- Throws:
Exception
-