Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offset for Topics #7

Closed
FaKod opened this issue Jul 2, 2014 · 1 comment
Closed

Offset for Topics #7

FaKod opened this issue Jul 2, 2014 · 1 comment

Comments

@FaKod
Copy link

FaKod commented Jul 2, 2014

Do you have an idea how to set an starting offset for reads, like it is mentioned here: https://cwiki.apache.org/confluence/display/KAFKA/0.8.0+SimpleConsumer+Example

This offset should be a date, provided as a URL query parameter.

@b
Copy link
Owner

b commented Jul 2, 2014

Unfortunately, this won't happen for a couple of reasons. First, kafka-websocket uses the high level consumer, which does not allow explicit setting of offsets. Simple consumer allows setting the offset, but at a very high complexity cost since you then have to explicitly manage almost everything. Second, Kafka deals in offsets, with no concept of time. Something external to Kafka would have to track, on the way in, what offsets correspond to what timestamps and store that information somewhere the consumers can find.

@b b closed this as completed Jul 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants