本文整理了Java中org.apache.hadoop.hbase.zookeeper.ZKConfig.validateClusterKey()
方法的一些代码示例,展示了ZKConfig.validateClusterKey()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKConfig.validateClusterKey()
方法的具体详情如下:
包路径:org.apache.hadoop.hbase.zookeeper.ZKConfig
类名称:ZKConfig
方法名:validateClusterKey
[英]Verifies that the given key matches the expected format for a ZooKeeper cluster key. The Quorum for the ZK cluster can have one the following formats (see examples below):
代码示例来源:origin: apache/hbase
private void checkClusterKey(String clusterKey) throws DoNotRetryIOException {
try {
ZKConfig.validateClusterKey(clusterKey);
} catch (IOException e) {
throw new DoNotRetryIOException("Invalid cluster key: " + clusterKey, e);
}
}
代码示例来源:origin: apache/hbase
ZKConfig.validateClusterKey(quorumAddress);
conf.set(TableOutputFormat.QUORUM_ADDRESS,quorumAddress);
代码示例来源:origin: apache/hbase
@Test
public void testClusterKey() throws Exception {
testKey("server", 2181, "/hbase");
testKey("server1,server2,server3", 2181, "/hbase");
try {
ZKConfig.validateClusterKey("2181:/hbase");
} catch (IOException ex) {
// OK
}
}
代码示例来源:origin: com.aliyun.hbase/alihbase-mapreduce
ZKConfig.validateClusterKey(quorumAddress);
conf.set(TableOutputFormat.QUORUM_ADDRESS,quorumAddress);
代码示例来源:origin: org.apache.hbase/hbase-mapreduce
ZKConfig.validateClusterKey(quorumAddress);
conf.set(TableOutputFormat.QUORUM_ADDRESS,quorumAddress);
代码示例来源:origin: harbby/presto-connectors
ZKConfig.validateClusterKey(quorumAddress);
conf.set(TableOutputFormat.QUORUM_ADDRESS,quorumAddress);
代码示例来源:origin: org.apache.hbase/hbase-common
@Test
public void testClusterKey() throws Exception {
testKey("server", 2181, "/hbase");
testKey("server1,server2,server3", 2181, "/hbase");
try {
ZKConfig.validateClusterKey("2181:/hbase");
} catch (IOException ex) {
// OK
}
}
代码示例来源:origin: com.aliyun.hbase/alihbase-common
@Test
public void testClusterKey() throws Exception {
testKey("server", 2181, "/hbase");
testKey("server1,server2,server3", 2181, "/hbase");
try {
ZKConfig.validateClusterKey("2181:/hbase");
} catch (IOException ex) {
// OK
}
}
内容来源于网络,如有侵权,请联系作者删除!