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
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configurationprivate static final org.slf4j.Loggerprivate final ReplicationPeerStorageprivate static final Stringprivate static final Stringprivate final ZKWatcher -
Constructor Summary
ConstructorsConstructorDescriptionReplicationPeerConfigUpgrader(ZKWatcher zookeeper, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancopyTableCFs(String peerId) protected StringgetTableCFsNode(String peerId) static voidprivate static voidvoidupgrade()
-
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
-