Class ZKDataMigrator

java.lang.Object
org.apache.hadoop.hbase.util.ZKDataMigrator

@Deprecated @Private public class ZKDataMigrator extends Object
Deprecated.
Since 2.0.0. To be removed in hbase-3.0.0.
Utlity method to migrate zookeeper data across HBase versions.
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
      Deprecated.
  • Constructor Details

  • 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.State found in znode.
      Throws:
      org.apache.zookeeper.KeeperException
      InterruptedException