Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Know existing producers for a kafka topic

Tags:

apache-kafka

In a Kafka server, I want to know all the producers which are sending data to a Kafka topic. Is there a way to find it.

Thanks.

like image 382
VinayKumar Avatar asked Jan 08 '18 15:01

VinayKumar


People also ask

Can a Kafka topic have multiple producers?

Kafka is able to seamlessly handle multiple producers that are using many topics or the same topic. The consumer subscribes to one or more topics and reads the messages.

How do I check topic details in Kafka?

You can use the bin/kafka-topics.sh shell script along with the Zookeeper service URL as well as the –list option to display a list of all the topics in the Kafka cluster. You can also pass the Kafka cluster URL to list all topics.

What is Kafka producer Acknowledgement?

In order to write data to the Kafka cluster, the producer has another choice of acknowledgment. It means the producer can get a confirmation of its data writes by receiving the following acknowledgments: acks=0: This means that the producer sends the data to the broker but does not wait for the acknowledgement.

How many producers are in Kafka?

One producer for all topics and partitions Probably the optimal choice for most applications. The Kafka producer batches any written message before sending them to the Kafka cluster for up to batch.


1 Answers

It's not possible. A Kafka broker doesn't have any information about connected producers even because the producer could not provide any identity information on connection; for this reason there is no command line tool for doing that.

like image 135
ppatierno Avatar answered Oct 15 '22 17:10

ppatierno