Skip to main content
yamu
Bronze III
January 19, 2023
Question

How to find In which server the Kafka cluster and topic are created

#1 How to find In which server the Kafka cluster and topic are created and 

#2 Can we find any IP addresses anywhere in the configuration/properties files

2 replies

Babasaheb
Gold ⭐️
Gold ⭐️
January 23, 2023

Hello @Yam 

 

Below are my inline answers to your queries: 

 

#1 How to find In which server the Kafka cluster and topic are created and 

>> You can check hostnames and broker IDs on which Kafka broker roles are installed from CM >> Kafka >> Instances. Here you will get the hostnames and broker IDs.

 

Now to check on which brokers topics are created either you can check it from SMM which very useful monitoring and administrative tool Cloudera is providing or you simply describe all topics using the command: 

 

kafka-topics --zookeeper ZK_HOST:2181 --describe  

OR

kafka-topics --bootstrap-server <broker-hostname>:9092 --describe  

 

Note: If the cluster is kerberized, then you should use keytab, jaas.conf, client.properties and the correct port which you are using to describe topics

 

#2 Can we find any IP addresses anywhere in the configuration/properties files

>> You can check hostnames, IPs and roles installed on those nodes from CM >> Hosts >> All Hosts.

 

If you found this response assisted with your query, please take a moment to log in and click on  KUDOS 🙂 & ”Accept as Solution" below this post.

Translate
DianaTorres
Community Manager
Community Manager
January 26, 2023

@yamu Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks!

Translate
Regards, Diana Torres, Senior Community Moderator