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
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
Deprecated.(package private) static final String
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.Fields inherited from class org.apache.hadoop.hbase.master.TableStateManager
master
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
fixTableState
(TableState tableState) Deprecated.For subclasses in case they want to do fixup post hbase:meta.protected void
metaStateDeleted
(TableName tableName) Deprecated.protected void
metaStateUpdated
(TableName tableName, TableState.State newState) Deprecated.private void
updateZooKeeper
(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:
metaStateUpdated
in classTableStateManager
- Throws:
IOException
-
metaStateDeleted
Deprecated.- Overrides:
metaStateDeleted
in classTableStateManager
- Throws:
IOException
-
updateZooKeeper
Deprecated.- Throws:
IOException
-
fixTableState
Deprecated.Description copied from class:TableStateManager
For subclasses in case they want to do fixup post hbase:meta.- Overrides:
fixTableState
in classTableStateManager
- Throws:
IOException
-