kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin Mittal <sjmit...@gmail.com>
Subject Re: What does GetOffsetShell result represent
Date Thu, 15 Dec 2016 11:52:16 GMT
Folks any explanation for this. Or any link that can help me on that.

On Tue, Dec 13, 2016 at 1:00 PM, Sachin Mittal <sjmittal@gmail.com> wrote:

> Hi,
> I have some trouble interpreting the result of GetOffsetShell command.
>
> Say if I run
> bin\windows\kafka-run-class.bat kafka.tools.GetOffsetShell --broker-list
> localhost:9092 --topic test-window-stream --time -2
> test-window-stream:0:0
>
> D:\kafka_2.10-0.10.2.0-SNAPSHOT>bin\windows\kafka-run-class.bat
> kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic
> test-window-stream --time -1
> test-window-stream:0:724
>
> bin\windows\kafka-run-class.bat kafka.tools.GetOffsetShell --broker-list
> localhost:9092 --topic test-window-stream
> test-window-stream:0:724
>
> D:\kafka_2.10-0.10.2.0-SNAPSHOT>bin\windows\kafka-run-class.bat
> kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic
> test-window-stream --offset 2
> test-window-stream:0:724,0
>
> So what does 0:0 mean or for that mater 0:724
>
> Also when I use  -2 (earliest), why does it show 0:0, does this means
> offset if at the start of the topic.
> Also when I use -1 (latest), it shows 0:724, does it means none of the
> records are processed.
> However I was having a stream application running which did aggregate
> atleast  upto 720 records before I killed it. So why does it not show here?
>
> Also it is not clear what --offset flag means and when I pass something
> greater than 1 I get ,0 appended to the earlier result.
>
> Thanks
> Sachin
>
>

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