本文整理了Java中org.apache.hadoop.hive.common.ZooKeeperHiveHelper.getServerUris()
方法的一些代码示例,展示了ZooKeeperHiveHelper.getServerUris()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZooKeeperHiveHelper.getServerUris()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.common.ZooKeeperHiveHelper
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!