44953/how-to-check-pending-messages-in-kafka-topic
Let say we have first_topic which has kafka_server_brokertopicmetrics_messagesin_total{instance="localhost:1120",job="kafka",topic="first_topic"} = 42,
How do I check for total message out from first_topic or pending message for consumer to consume?
kafka-run-class.bat kafka.tools.ConsumerOffsetChecker --broker-info --group test-consumer-group --topic test --zookeeper localhost:2181
Hope this will help.
To know more about Kafka, get your Apache Kafka certification course today.
Thank You
Hi@akhtar, You have to read the messages normally ...READ MORE
How to stop Kafka server from crashing ...READ MORE
Hi@Amit, You can pass --offset keyword in your ...READ MORE
Hi@akhtar, To create a Kafka topic, you need ...READ MORE
Yes, it stays the same. An offset is ...READ MORE
The reset option only prints the result ...READ MORE
To delete all the messages from a Kafka topic. There are many approach ...READ MORE
For your case what you can do ...READ MORE
Deleting topic isn't always working in 0.8.1.1 Deletion ...READ MORE
The most important elements of Kafka: Topic – ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.