Package org.apache.hadoop.hbase.master
Class MirroringTableStateManager
java.lang.Object
org.apache.hadoop.hbase.master.TableStateManager
org.apache.hadoop.hbase.master.MirroringTableStateManager
Deprecated.
Since 2.0.0. To be removed in 3.0.0.
A subclass of TableStateManager that mirrors change in state out to zookeeper for hbase-1.x
clients to pick up; hbase-1.x clients read table state of zookeeper rather than from hbase:meta
as hbase-2.x clients do. Set "hbase.mirror.table.state.to.zookeeper" to false to disable
mirroring. See in HMaster where we make the choice. The below does zk updates on a best-effort
basis only. If we fail updating zk we keep going because only hbase1 clients suffer; we'll just
log at WARN level.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.LoggerDeprecated.(package private) static final StringDeprecated.Set this key to true in Configuration to enable mirroring of table state out to zookeeper so hbase-1.x clients can pick-up table state.Fields inherited from class org.apache.hadoop.hbase.master.TableStateManager
master -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfixTableState(TableState tableState) Deprecated.For subclasses in case they want to do fixup post hbase:meta.protected voidmetaStateDeleted(TableName tableName) Deprecated.protected voidmetaStateUpdated(TableName tableName, TableState.State newState) Deprecated.private voidupdateZooKeeper(TableState tableState) Deprecated.Methods inherited from class org.apache.hadoop.hbase.master.TableStateManager
deleteZooKeeper, getTablesInStates, getTableState, isTablePresent, isTableState, setDeletedTable, setTableState, start
-
Field Details
-
LOG
Deprecated. -
MIRROR_TABLE_STATE_TO_ZK_KEY
Deprecated.Set this key to true in Configuration to enable mirroring of table state out to zookeeper so hbase-1.x clients can pick-up table state.- See Also:
-
-
Constructor Details
-
MirroringTableStateManager
Deprecated.
-
-
Method Details
-
metaStateUpdated
Deprecated.- Overrides:
metaStateUpdatedin classTableStateManager- Throws:
IOException
-
metaStateDeleted
Deprecated.- Overrides:
metaStateDeletedin classTableStateManager- Throws:
IOException
-
updateZooKeeper
Deprecated.- Throws:
IOException
-
fixTableState
Deprecated.Description copied from class:TableStateManagerFor subclasses in case they want to do fixup post hbase:meta.- Overrides:
fixTableStatein classTableStateManager- Throws:
IOException
-