kafka get partition count for a topic
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I get number of partitions for any kafka topic from the code. I have researched many links but none seem to work. Mentioning a few: http://grokbase.com/t/kafka/users/148132gdzk/find-topic-partition-count-through-simpleclient-api http://grokbase.com/t/kafka/users/151cv3htga/get-replication-and-partition-count-of-a-topic http://qnalist.com/questions/5809219/get-replication-and-partition-count-of-a-topic which look like similar discussions. Also there are similar links on SO which do not have a working solution to this. 回答1: Go to your