Is there any way to set zookeeper port?

Can I set custom zookeeper port in druid properties?

I only find “druid.zk.service.host” in conf/druid/_common/common.runtime.properties. Does any property like “druid.zk.service.port” exist? Thx.

The zk service host is just passed along to the zk client as is. Zk supports putting a port at the end of the host string, so you should be able to specify the port by doing that.

–Eric

to add to what Eric said

it is comma separated string [host:port] -> “host:port,host:port,host:port"

druid.zk.service=10.2.0.1:2182,10.2.0.2:2182