@InterfaceAudience.Private public class HBaseHbck extends Object implements Hbck
ClusterConnection.getHbck() to obtain an instance of Hbck instead of
constructing
an HBaseHbck directly. This will be mostly used by hbck tool.
Connection should be an unmanaged connection obtained via
ConnectionFactory.createConnection(Configuration).
An instance of this class is lightweight and not-thread safe. A new instance should be created by each thread. Pooling or caching of the instance is not recommended.
ConnectionFactory,
ClusterConnection,
Hbck| Modifier and Type | Method and Description |
|---|---|
void |
abort(String why,
Throwable e)
Abort the server or client.
|
void |
close() |
boolean |
isAborted()
Check if the server or client was aborted.
|
TableState |
setTableStateInMeta(TableState state)
NOTE: This is a dangerous action, as existing running procedures for the table or regions
which belong to the table may get confused.
|
public void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void abort(String why, Throwable e)
Abortablepublic boolean isAborted()
Abortablepublic TableState setTableStateInMeta(TableState state) throws IOException
setTableStateInMeta in interface Hbckstate - table stateIOExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.