How to find Kafka port number and Zookeeper port number

01 October,2019 by Rambler

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: Rambler (http://www.dba-ninja.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on How to find Kafka port number and Zookeeper port number


dba-ninja.com