-
Notifications
You must be signed in to change notification settings - Fork 882
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
Unable to start from beginning of topic using on_assign hook #224
Comments
OK, this had nothing to do with the unassign hook. I was missing the |
-10 is not a valid offset. Also note that kafka-consumer-groups.sh is displaying the committed offsets |
Expose offsets_for_times consumer method. closes confluentinc#224
Expose offsets_for_times consumer method. closes confluentinc#224 Expose offsets_for_times consumer method. closes confluentinc#224
Expose offsets_for_times consumer method. closes confluentinc#224 Expose offsets_for_times consumer method. closes confluentinc#224 Expose offsets_for_times consumer method. closes confluentinc#224
I am unable to recreate the behavior of the kafka-console-consumer.sh script with my python code. I am using the broker-stored offsets (new style API).
I have a topic
io
which I am trying to read from the beginning with python. This topic already has data in it (generated by a confluent_kafka Producer).When I run the python consumer I see the consumer but it does not have any partition information:
The consumer code looks like the references:
With this output:
so no data comes through. I have tried setting the partition offset to
0
,-10
. The default value provided to theon_assign
callback is an offset of-1001L
, if that makes any difference.Compare to the output from invoking the kafka console consumer:
and the offset inspector showing:
Why isn't the on_assign hook making any difference? I should see some kind of data coming through.
The text was updated successfully, but these errors were encountered: