Skip to content

Instantly share code, notes, and snippets.

@cyberjso
Last active January 7, 2020 12:59
Show Gist options
  • Save cyberjso/17f298571b42eff939d10313e9081427 to your computer and use it in GitHub Desktop.
Save cyberjso/17f298571b42eff939d10313e9081427 to your computer and use it in GitHub Desktop.
how to count number for messages on on given kafka topic
#!/bin/bash
bin/kafka-run-class.sh kafka.tools.GetOffsetShell \
--broker-list localhost:9092
-topic topic-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment