How to find Kafka port number and Zookeeper port number

 

01 October,2019 by

Question: I need to supply the Kafka port number and Zookeeper port number for firewall exceptions. Where can I find the port number details for both Kafka and Zookeeper ? 

Answer : To find the Kafka port number – locate the Kafka server.properties file. Typically the server.properties  file will have the information required. The file is normally found on this location . By default the port number is 9092.   

$(confluent_home)/etc/kafka/server.properties

To find the Zookeeper port number – locate the Zookeeper properties file. Normally found on $(confluent_home)/etc/kafka/zookeeper.properties. Once you’ve opened the file , look for ClientPort=2181

 
For Zookeeper –
2181 = Client connections
2888 = Zookeeper followers
3888= inter node connections
 
Read more on Apache Kafka 
 
 

Author: Jack Vamvas

Leave a Reply

Discover more from ciquery

Subscribe now to keep reading and get access to the full archive.

Continue reading