Class ReplicationPeerConfigUpgrader
java.lang.Object
org.apache.hadoop.hbase.replication.master.ReplicationPeerConfigUpgrader
This class is used to upgrade TableCFs from HBase 1.0, 1.1, 1.2, 1.3 to HBase 1.4 or 2.x. It will
be removed in HBase 3.x. See HBASE-11393
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configuration
private static final org.slf4j.Logger
private final ReplicationPeerStorage
private static final String
private static final String
private final ZKWatcher
-
Constructor Summary
ConstructorDescriptionReplicationPeerConfigUpgrader
(ZKWatcher zookeeper, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
copyTableCFs
(String peerId) protected String
getTableCFsNode
(String peerId) static void
private static void
void
upgrade()
-
Field Details
-
TABLE_CFS_ZNODE
- See Also:
-
TABLE_CFS_ZNODE_DEFAULT
- See Also:
-
LOG
-
conf
-
zookeeper
-
peerStorage
-
-
Constructor Details
-
ReplicationPeerConfigUpgrader
public ReplicationPeerConfigUpgrader(ZKWatcher zookeeper, org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-
-
Method Details
-
upgrade
- Throws:
Exception
-
copyTableCFs
- Throws:
ReplicationException
-
getTableCFsNode
-
copyTableCFs
- Throws:
ReplicationException
-
printUsageAndExit
-
main
- Throws:
Exception
-