Hello @mike_bronson7 ,
Thank you for posting your query
You can execute 'get' on the same zookeeper client shell for the znode you would be able to get the hostname
Example:
zookeeper-shell.sh zoo_server1:2181 <<< "ls /brokers/ids/1018"
It returns output as follows (example - in my case)
[zk: localhost:2181(CONNECTED) 5] get /brokers/ids/10
{"listener_security_protocol_map":{"PLAINTEXT":"PLAINTEXT"},"endpoints":["PLAINTEXT://simple01.cloudera.com:9092"],"jmx_port":9393,"host":"simple01.cloudera.com","timestamp":"1590512066422","port":9092,"version":4}
cZxid = 0x1619b
ctime = Tue May 26 09:54:26 PDT 2020
mZxid = 0x1619b
mtime = Tue May 26 09:54:26 PDT 2020
pZxid = 0x1619b
cversion = 0
dataVersion = 1
aclVersion = 0
ephemeralOwner = 0x1722ddb1e844d50
dataLength = 238
numChildren = 0
so, my brokerID 10 is mapped with the host: simple01.cloudera.com
Thanks,
Satz