TECHIES WORLD

For Techs.... Techniques.... Technologies....

AWSBashLinux

How to find Kafka port number and Zookeeper port number

Kafka port number can be get from the configuration file 'server.properties'.

Defult localtion of the configuration file is $(confluent_home)/etc/kafka/server.properties.

Also the default port number is 9092.

Zookeeper port number can be get from the configuration file 'zookeeper.properties'.

Defult localtion of the configuration file is $(confluent_home)/etc/kafka/zookeeper.properties.

Also the default port number is 2181.

Zookeeper using few other ports for the different connections.

2181 : Client connections
2888 : Zookeeper followers
3888 : inter node connections

That's all…

Leave a Reply