It is not java, but may be useful
./bin/kafka-run-class.sh kafka.tools.GetOffsetShell \
--broker-list <broker>:<port> \
--topic <topic-name> \
| awk -F ":" '{sum += $3} END {print sum}'
More Related Contents:
- Connect to Kafka running in Docker
- How can I send large messages with Kafka (over 15MB)?
- How to create a Topic in Kafka through Java
- How Can we create a topic in Kafka from the IDE using API
- What determines Kafka consumer offset?
- Writing Custom Kafka Serializer
- How to Delete a topic in apache kafka [duplicate]
- When does the Apache Kafka client throw a “Batch Expired” exception?
- What is a simple, effective way to debug custom Kafka connectors?
- Is it possible to add partitions to an existing topic in Kafka 0.8.2
- How to get kafka consume lag in java program
- Handling exceptions in Kafka streams
- Is it possible to access message headers with Kafka Streams?
- Dynamically connecting a Kafka input stream to multiple output streams
- How to create Custom serializer in kafka?
- Kafka Consumer CommitFailedException
- Can a Kafka consumer(0.8.2.2) read messages in batch
- How can I delete a topic in Apache Kafka? [duplicate]
- log4j redirect stdout to DailyRollingFileAppender
- NoClassDefFoundError in Java: com/google/common/base/Function
- How does double to int cast work in Java
- Why does Guava’s ImmutableList have so many overloaded of() methods?
- Difference between returning null and “” from a JSF action
- Problems importing project into Android Studio regarding ActionBarSherlock
- Java: Why does this swap method not work? [duplicate]
- Split string into individual words Java
- New java.security.AccessControlException in Java 8
- Fastest way of finding the middle value of a triple?
- How to show a notification without a sound java
- java daemon thread and non-daemon thread