配置Druid以在端口5181上连接到Zookeeper

编程入门 行业动态 更新时间:2024-10-25 10:34:52
本文介绍了配置Druid以在端口5181上连接到Zookeeper的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在运行MapR集群,并希望使用 Druid 进行一些时间序列分析.MapR对Zookeeper使用非标准端口(端口5181代替了常规端口2181).

I'm running a MapR cluster and want to do some timeseries analysis with Druid. MapR uses a non-standard port for Zookeeper (port 5181 instead of the conventional port 2181).

当我启动Druid协调器服务时,它尝试在传统的Zookeeper端口上连接并失败:

When I start the Druid coordinator service, it attempts to connect on the conventional Zookeeper port and fails:

2015-03-03T17:46:49,614 INFO [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. 2015-03-03T17:46:49,617 WARN [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.ConnectException: Connection refused

德鲁伊文档显示,可以通过设置Zookeeper主机. config/_common/common.runtime.properties 中的druid.zk.service.host 属性.它没有指定用于编辑Zookeeper端口的属性.

The Druid documentation shows that the Zookeeper host can be set via the druid.zk.service.host property in config/_common/common.runtime.properties. It does not specify a property to edit the Zookeeper port.

Druid的Zookeeper端口是否可配置?或者,如果将Druid与MapR一起使用,是否有必要运行其他Zookeeper服务?

Is the Zookeeper port for Druid configurable? Or is it necessary to run an additional Zookeeper service if using Druid with MapR?

推荐答案

解决方案是将端口添加到 config/_common/common.runtime.properties 中的主机名:

The solution was to add the port to the hostnames in config/_common/common.runtime.properties:

druid.zk.service.host=zkNode1:5181,zkNode2:5181,zkNode3:5181

更多推荐

配置Druid以在端口5181上连接到Zookeeper

本文发布于:2023-10-07 12:48:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469425.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:连接到   端口   Druid   Zookeeper

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!