org.apache.hadoop.hive.common.ZooKeeperHiveHelper.getServerUris()方法的使用及代码示例

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

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

ZooKeeperHiveHelper.getServerUris介绍

[英]This method is supposed to be called from client code connecting to one of the servers managed by the configured ZooKeeper. It starts and closes its own ZooKeeper client instead of using the class member.
[中]应该从连接到配置的ZooKeeper管理的其中一台服务器的客户端代码调用此方法。它启动并关闭自己的ZooKeeper客户端,而不是使用类成员。

代码示例

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

metastoreUrisString = new ArrayList<String>();
for (String s : MetastoreConf.getZKConfig(conf).getServerUris()) {
 metastoreUrisString.add("thrift://" + s);

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

while (true) {
 try {
  List<String> serverUris = zkHelper.getServerUris();

相关文章