gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-14 15:09:31 27 4
gpt4 key购买 nike

本文整理了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();

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com