配置 Druid 在 5181 端口连接到 Zookeeper [英] configure Druid to connect to Zookeeper on port 5181

查看:59
本文介绍了配置 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.net.ConnectException: Connection refused

Druid 文档表明可以通过 设置 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆