-
Notifications
You must be signed in to change notification settings - Fork 129
Host property in Zookeeper is null #157
Comments
Thanks for the bug report. Kafka-utils is not officially compatible with Kafka >= 0.11 yet, but it will be soon (hopefully within the next few months). However I can't guarantee that it will be immediately made compatible with the new ZK format. I don't think there is any parameter to read from "endpoints", however we could add some logic to parse that field in case "host" is null. It's not currently one of our priorities, but if you open a PR I'm happy to help reviewing it. |
@kouzant this is a well known issue in Kafka. When you are running Kafka in any other protocol than PLAINTEXT like for instance when you kerberize your cluster OUTPUT: and then: You should have one thing on your mind while doing this. Every time you restart your broker |
I am testing kafka-utils with our Kafka cluster and the "host" property in Zookeeper
brokers/ids/BROKER_ID
is nullIn our Kafka configuration we use the listener configuration parameters which over-write the host.name parameter, actually it is deprecated since version 0.10.0 of Kafka.
In our testing environment Zookeeper looks like this:
[zk: localhost:2181(CONNECTED) 16] get /brokers/ids/1 {"listener_security_protocol_map":{"INTERNAL":"SSL","EXTERNAL":"SSL"},"endpoints":["INTERNAL://MY_ENDPOINT:9091","EXTERNAL://MY_ENDPOINT:9092"],"rack":"MY_RACK","jmx_port":19999,"host":null,"timestamp":"1522162718367","port":-1,"version":4} cZxid = 0x100000641 ctime = Tue Mar 27 14:58:38 UTC 2018 mZxid = 0x100000641 mtime = Tue Mar 27 14:58:38 UTC 2018 pZxid = 0x100000641 cversion = 0 dataVersion = 0 aclVersion = 0 ephemeralOwner = 0x162669c09dc0303 dataLength = 235 numChildren = 0 [zk: localhost:2181(CONNECTED) 17]
When I remove the listener parameters and set the host.name it works as expected.
Are you planning to fix this, by probably reading the "endpoints" instead of the "host"? Is there any misconfiguration on my side that I'm not aware of?
Thanks in advance
The text was updated successfully, but these errors were encountered: