Kafka consumer list -


i need find out way ask kafka list of topics. know can using kafka-topics.sh script included in bin\ directory. once have list, need consumers per topic. not find script in directory, nor class in kafka-consumer-api library allows me it.

the reason behind need figure out difference between topic's offset , consumers' offsets.

is there way achieve this? or need implement functionality in each of consumers?

kafka stores information in zookeeper. can see topic related information under brokers->topics. if wish topics programmatically can using zookeeper api.

it explained in detail in below links tutorialspoint, zookeeper programmer guide


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -