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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.hbase.shaded.protobuf.generated.ZooKeeperProtos.DeprecatedTableState.State
getTableState
(ZKWatcher zkw, TableName tableName) Deprecated.Since 2.0.0.static Map<TableName,
TableState.State> Deprecated.Since 2.0.0.
-
Field Details
-
LOG
Deprecated.
-
-
Constructor Details
-
ZKDataMigrator
private 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 usetableName
- table we're checking- Returns:
- Null or
ZooKeeperProtos.DeprecatedTableState.State
found in znode. - Throws:
org.apache.zookeeper.KeeperException
InterruptedException
-