org.apache.hadoop.hbase.client.Connection.getHbck()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中org.apache.hadoop.hbase.client.Connection.getHbck()方法的一些代码示例,展示了Connection.getHbck()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Connection.getHbck()方法的具体详情如下:
包路径:org.apache.hadoop.hbase.client.Connection
类名称:Connection
方法名:getHbck

Connection.getHbck介绍

[英]Retrieve an Hbck implementation to fix an HBase cluster. The returned Hbck is not guaranteed to be thread-safe. A new instance should be created by each thread. This is a lightweight operation. Pooling or caching of the returned Hbck instance is not recommended.
The caller is responsible for calling Hbck#close() on the returned Hbck instance.
This will be used mostly by hbck tool.
[中]检索Hbck实现以修复HBase群集。返回的Hbck不能保证线程安全。每个线程都应该创建一个新实例。这是一个轻量级操作。不建议对返回的Hbck实例进行池或缓存。
调用者负责对返回的Hbck实例调用Hbck#close()。
这将主要由hbck工具使用。

代码示例

代码示例来源:origin: apache/hbase

@Override
 public Hbck getHbck(ServerName masterServer) throws IOException {
  return conn.getHbck(masterServer);
 }
}

代码示例来源:origin: apache/hbase

@Override
public Hbck getHbck() throws IOException {
 return conn.getHbck();
}

代码示例来源:origin: apache/hbase

/**
 * Returns an {@link Hbck} instance. Needs be closed when done.
 */
public Hbck getHbck() throws IOException {
 return getConnection().getHbck();
}

相关文章