configure Druid to connect to Zookeeper on port 5181

夙愿已清 提交于 2020-02-02 11:18:28

问题


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).

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

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.

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


回答1:


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



回答2:


it is configurable, you can have something like

druid.zk.service.host=localhost:8080


来源:https://stackoverflow.com/questions/28838992/configure-druid-to-connect-to-zookeeper-on-port-5181

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!