Class CopyReplicationPeers
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.replication.CopyReplicationPeers
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
@LimitedPrivate("Tools")
public class CopyReplicationPeers
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
A tool for copying replication peer data across different replication peer storages.
Notice that we will not delete the replication peer data from the source storage, as this tool
can also be used by online migration. See HBASE-27110 for the whole design.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate ReplicationPeerStorage
private ZKWatcher
static void
private void
int
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
-
LOG
-
NAME
- See Also:
-
-
Constructor Details
-
CopyReplicationPeers
-
-
Method Details
-
create
private ReplicationPeerStorage create(String type, org.apache.hadoop.fs.FileSystem fs, ZKWatcher zk) -
createZKWatcher
- Throws:
IOException
-
migrate
private void migrate(ReplicationPeerStorage src, ReplicationPeerStorage dst) throws ReplicationException - Throws:
ReplicationException
-
run
- Specified by:
run
in interfaceorg.apache.hadoop.util.Tool
- Throws:
Exception
-
main
- Throws:
Exception
-