Package org.apache.hadoop.hbase.util
Class ZKDataMigrator
java.lang.Object
org.apache.hadoop.hbase.util.ZKDataMigrator
Deprecated.
Since 2.0.0. To be removed in hbase-3.0.0.
Utlity method to migrate zookeeper data across HBase versions.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.DeprecatedTableState.StategetTableState(ZKWatcher zkw, TableName tableName) Deprecated.Since 2.0.0.static Map<TableName,TableState.State> Deprecated.Since 2.0.0.
- 
Field Details- 
LOGDeprecated.
 
- 
- 
Constructor Details- 
ZKDataMigratorprivate ZKDataMigrator()Deprecated.
 
- 
- 
Method Details- 
queryForTableStates@Deprecated public static Map<TableName,TableState.State> queryForTableStates(ZKWatcher zkw) throws org.apache.zookeeper.KeeperException, InterruptedException Deprecated.Since 2.0.0. To be removed in hbase-3.0.0.Method for table states migration. Used when upgrading from pre-2.0 to 2.0 Reading state from zk, applying them to internal state and delete. Used by master to clean migration from zk based states to table descriptor based states.- Throws:
- org.apache.zookeeper.KeeperException
- InterruptedException
 
- 
getTableState@Deprecated private static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.DeprecatedTableState.State getTableState(ZKWatcher zkw, TableName tableName) throws org.apache.zookeeper.KeeperException, InterruptedException Deprecated.Since 2.0.0. To be removed in hbase-3.0.0.Gets table state from ZK.- Parameters:
- zkw- ZKWatcher instance to use
- tableName- table we're checking
- Returns:
- Null or
         ZooKeeperProtos.DeprecatedTableState.Statefound in znode.
- Throws:
- org.apache.zookeeper.KeeperException
- InterruptedException
 
 
-