@InterfaceAudience.Private @InterfaceStability.Unstable public class ReplicationPeerConfigUpgrader extends ReplicationStateZKBase
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
abortable, conf, DISABLED_ZNODE_BYTES, ENABLED_ZNODE_BYTES, hfileRefsZNode, ourClusterKey, peerStateNodeName, peersZNode, queuesZNode, replicationZNode, tableCFsNodeName, zookeeper, ZOOKEEPER_ZNODE_REPLICATION_HFILE_REFS_DEFAULT, ZOOKEEPER_ZNODE_REPLICATION_HFILE_REFS_KEY| Constructor and Description |
|---|
ReplicationPeerConfigUpgrader(ZKWatcher zookeeper,
org.apache.hadoop.conf.Configuration conf,
Abortable abortable) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyTableCFs() |
boolean |
copyTableCFs(String peerId) |
private ReplicationPeerConfig |
getReplicationPeerConig(String peerNode) |
static void |
main(String[] args) |
private static void |
printUsageAndExit() |
void |
upgrade() |
getListOfReplicatorsZK, getPeerNode, getPeerStateNode, getTableCFsNode, isPeerPath, peerExists, toByteArrayprivate static final org.slf4j.Logger LOG
public ReplicationPeerConfigUpgrader(ZKWatcher zookeeper, org.apache.hadoop.conf.Configuration conf, Abortable abortable)
public void copyTableCFs()
public boolean copyTableCFs(String peerId)
private ReplicationPeerConfig getReplicationPeerConig(String peerNode) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionprivate static void printUsageAndExit()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.