【问题标题】:Change Hive Zookeeper port更改 Hive Zookeeper 端口
【发布时间】:2013-09-18 23:26:56
【问题描述】:

我正在尝试找到一种方法来更改 Hive 中的 zookeeper 端口号,但它们都失败了...... 首先我想说的是我的HBase集群的zookeeper是在2222端口上运行的,所以我也希望我的hive的zookeeper端口号设置为2222,但它默认连接到2181端口,如下所示:

2013-09-18 15:18:27,415 INFO org.apache.zookeeper.ClientCnxn: 
Opening socket connection to server datanode2/192.168.1.97:2181. 
Will not attempt to authenticate using SASL (unknown error)

所以我更改了 Hive 的配置文件 (hive-default.xml.template) 并设置了

hive.zookeeper.client.port=2222

在 hive 中;但是,hive 仍然连接到端口 2181,同样的日志显示在上面...

谁能告诉我如何更改 hive 中的 zookeeper 端口号?

【问题讨论】:

    标签: hbase hive apache-zookeeper


    【解决方案1】:

    您需要在 hive-site.xml 文件中进行更改。如果它不存在,请手动创建它。您不得触摸 hive-default.xml 文件。此外,您进行更改的文件是模板文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-07-04
      • 1970-01-01
      • 2021-01-26
      • 2015-03-12
      • 2020-05-13
      • 1970-01-01
      • 2010-09-13
      相关资源
      最近更新 更多