Skip to main content
KhangNguyen
Silver ⭐️
Dec 8, 2021 1:06 PM UTC
Solved

Kafka Issue

Cannot display the number of topics and information about each topic when using cmd (zookeeper state changed (SyncConnected))

 

260911273_180545207547434_4255310727244255007_n.png

Nidhin
NidhinAnswer
Gold ⭐️
Dec 13, 2021 1:28 PM UTC

Hello @KhangNguyen Please use Zookeeper chroot with your topic list command. 

For e.g:

 

kafka-topics --zookeeper <zookeeper-hostname>:<zk_port>/kafka 

 

Here in the above case Zookeeper chroot is /kafka accordingly please use chroot value you have set in the Kafka configs. Hope it helps.

4 replies

Azhar_Shaikh1
Gold ⭐️
Gold ⭐️
Dec 8, 2021 4:27 PM UTC

Hello @KhangNguyen 

 

Can you please share the command that you are trying to list the kafka topics and just wanted to confirm If zookeeper is in active state.

Translate
Nidhin
Gold ⭐️
NidhinAnswer
Gold ⭐️
Dec 13, 2021 1:28 PM UTC

Hello @KhangNguyen Please use Zookeeper chroot with your topic list command. 

For e.g:

 

kafka-topics --zookeeper <zookeeper-hostname>:<zk_port>/kafka 

 

Here in the above case Zookeeper chroot is /kafka accordingly please use chroot value you have set in the Kafka configs. Hope it helps.

Translate
KhangNguyen
Silver ⭐️
Dec 17, 2021 11:47 AM UTC

Hi Nidhin ,

 

Thank for your support. With your solution I solved the problem

 

Regards,

Khang

Translate
DianaTorres
Community Manager
Community Manager
Dec 16, 2021 7:44 PM UTC

@KhangNguyen 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