-
-
Save dubcl/a804bf6147e78a05ac675c34fa4281c8 to your computer and use it in GitHub Desktop.
get kafka topic message count
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kafka-run-class kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic xxx --time -1 --offsets 1 | awk -F ':' '{sum += $3} END {print sum}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment