kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burton Williams <burton.b.willi...@gmail.com>
Subject Re: Get count of messages
Date Tue, 30 Oct 2018 13:22:31 GMT
@matthias is right. His solution is more performant and scalable.

-BW

On Mon, Oct 29, 2018 at 6:52 PM Matthias J. Sax <matthias@confluent.io>
wrote:

> That is quite expensive to do...
>
> Might be best to write a short Java program that uses
> Consumer#endOffset() and Consumer#beginningOffsets()
>
>
> -Matthias
>
> On 10/29/18 3:02 PM, Burton Williams wrote:
> > you can user kafkacat starting at that offset to head and pipe the output
> > to "wc -l" (word count).
> >
> > -BW
> >
> > On Mon, Oct 29, 2018 at 3:39 AM Sachit Murarka <connectsachit@gmail.com>
> > wrote:
> >
> >> Hi All,
> >>
> >> Could you please help me in getting count of all messages stored in
> kafka
> >> from a particular offset?
> >> I have tried GetOffsetShell command, it is not giving me.
> >>
> >>
> >> Kind Regards,
> >> Sachit Murarka
> >>
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message