org.apache.hadoop.hbase.zookeeper.ZKClusterId.getUUIDForCluster()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(86)

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

ZKClusterId.getUUIDForCluster介绍

[英]Get the UUID for the provided ZK watcher. Doesn't handle any ZK exceptions
[中]获取提供的ZK监视程序的UUID。不处理任何ZK异常

代码示例

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

@Override
// Synchronize peer cluster connection attempts to avoid races and rate
// limit connections when multiple replication sources try to connect to
// the peer cluster. If the peer cluster is down we can get out of control
// over time.
public synchronized UUID getPeerUUID() {
 UUID peerUUID = null;
 try {
  peerUUID = ZKClusterId.getUUIDForCluster(zkw);
 } catch (KeeperException ke) {
  reconnect(ke);
 }
 return peerUUID;
}

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

try {
 zkw = new ZKWatcher(conf, context.getTaskAttemptID().toString(), null);
 clusterIds = Collections.singletonList(ZKClusterId.getUUIDForCluster(zkw));
} catch (ZooKeeperConnectionException e) {
 ex = e;

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

clusterId = ZKClusterId.getUUIDForCluster(this.server.getZooKeeper());
} catch (KeeperException ke) {
 throw new IOException("Could not read cluster id", ke);

代码示例来源:origin: harbby/presto-connectors

@Override
// Synchronize peer cluster connection attempts to avoid races and rate
// limit connections when multiple replication sources try to connect to
// the peer cluster. If the peer cluster is down we can get out of control
// over time.
public synchronized UUID getPeerUUID() {
 UUID peerUUID = null;
 try {
  peerUUID = ZKClusterId.getUUIDForCluster(zkw);
 } catch (KeeperException ke) {
  reconnect(ke);
 }
 return peerUUID;
}

代码示例来源:origin: com.aliyun.hbase/alihbase-mapreduce

try {
 zkw = new ZKWatcher(conf, context.getTaskAttemptID().toString(), null);
 clusterIds = Collections.singletonList(ZKClusterId.getUUIDForCluster(zkw));
} catch (ZooKeeperConnectionException e) {
 ex = e;

代码示例来源:origin: org.apache.hbase/hbase-mapreduce

try {
 zkw = new ZKWatcher(conf, context.getTaskAttemptID().toString(), null);
 clusterIds = Collections.singletonList(ZKClusterId.getUUIDForCluster(zkw));
} catch (ZooKeeperConnectionException e) {
 ex = e;

代码示例来源:origin: harbby/presto-connectors

try {
 zkw = new ZooKeeperWatcher(conf, context.getTaskAttemptID().toString(), null);
 clusterIds = Collections.singletonList(ZKClusterId.getUUIDForCluster(zkw));
} catch (ZooKeeperConnectionException e) {
 ex = e;

代码示例来源:origin: harbby/presto-connectors

clusterId = ZKClusterId.getUUIDForCluster(this.server.getZooKeeper());
} catch (KeeperException ke) {
 throw new IOException("Could not read cluster id", ke);

相关文章