Reputation: 578
Using this library, I was able to get the partition count per topic
but not able to get the replication factor
. Closest question I could find was this for reference.
Any ideas on how to do it?
Upvotes: 0
Views: 1032
Reputation: 22956
If you use confluent-kafka library,
Create AdminClient
Then ListTopics
It will return ClusterMetaData
Then, use topics' metadata from ClusterMetaData
TopicMetadata has Partitions' metadata which has replica details
Upvotes: 4