<h2>Background</h2>
<p>On my Kubernetes cluster, I have installed Zookeeper &amp; Kafka using Confluent Operator. I have confirmed that they are configured properly by creating and publishing to a Kafka topic.</p>
<h2>Problem</h2>
<p>When I use the zookeeper-shell, the command:
<code>get /brokers/ids</code> returns null, while I'm expecting something like [0, 1, 2]</p>
<h2>Details</h2>
<p>I am using the zookeeper-shell from within the Kubernetes cluster, and am connecting without difficulty with the following command:
<code>~/bin/zookeeper-shell zookeeper:2181</code></p>
<p>The following commands output the correct (non-null) response: <code>get /zookeeper/config</code>, <code>get /cluster/id</code></p>
<p>But the following commands return null: <code>get /brokers/ids</code>, <code>get /brokers/topics</code></p>
<h2>More Info</h2>
<p>The fact that I know the brokers are working makes this strange. It could be a security issue, but it seems strange that the other requests would work in that case. Finally, Confluent Control Center is directly telling me that broker.id 1 is the controller, which implies that this data is somehow retrievable. Any help here would be appreciated. Thank you.</p>

Chandler
<p>Solved. In the brokers' server.properties, zookeeper.connect was set to localhost:PORT instead of zookeeper:PORT</p>
