@InterfaceAudience.Private @InterfaceStability.Unstable public class ReplicationPeerConfigUpgrader extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
private static org.slf4j.Logger |
LOG |
private ReplicationPeerStorage |
peerStorage |
private static String |
TABLE_CFS_ZNODE |
private static String |
TABLE_CFS_ZNODE_DEFAULT |
private ZKWatcher |
zookeeper |
Constructor and Description |
---|
ReplicationPeerConfigUpgrader(ZKWatcher zookeeper,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
copyTableCFs() |
boolean |
copyTableCFs(String peerId) |
protected String |
getTableCFsNode(String peerId) |
static void |
main(String[] args) |
private static void |
printUsageAndExit() |
void |
upgrade() |
private static final String TABLE_CFS_ZNODE
private static final String TABLE_CFS_ZNODE_DEFAULT
private static final org.slf4j.Logger LOG
private final org.apache.hadoop.conf.Configuration conf
private final ReplicationPeerStorage peerStorage
public ReplicationPeerConfigUpgrader(ZKWatcher zookeeper, org.apache.hadoop.conf.Configuration conf)
public void copyTableCFs() throws ReplicationException
ReplicationException
protected String getTableCFsNode(String peerId)
public boolean copyTableCFs(String peerId) throws ReplicationException
ReplicationException
private static void printUsageAndExit()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.