-
Notifications
You must be signed in to change notification settings - Fork 911
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
Can you consume without using a consumer group? #250
Comments
While the group.id is technically not required from a Kafka standpoint until you want to commit offsets, this client implementation requires the group.id to be set. |
So, if I set Thanks for the quick answer by the way. |
Exactly, with two additions:
|
Awesome. I will give that a try. Thank you! |
Behavior confirmed. Closing. |
I'm afraid this will not bypass all the consumer group mechanisms. If you have ACL enabled and your kafka user is not allowed to create consumer groups with the given id, you cannot consume:
|
with the latest version (1.5.0), i followed #250 (comment) but ill still get errors requiring group to be set up when i run |
@deeTEEcee You can, but you are required to supply a |
sorry, to be more specific, ill get the error even if i added in the group and disabled it. current source code just to make things easier to see:
|
What errors are you seeing? |
|
Ah, right, we still look up the coordinator to be able to commit offsets, and that lookup will fail in this case. Is it necessary to have this group acl in place? |
Not sure if that was a question for me but yeah, I do need the group acl activated for this. Otherwise, it breaks. |
@edenhill I just learned today we also have this ticket which describes a very similar situation: confluentinc/librdkafka#3261 My team also uses a Java client for kafka and we were pretty confused why |
@edenhill May I ask if there is any update to this topic? I tested the behavior mentioned by @deeTEEcee myself and found that ACL error does not happen to me. |
Is there a way to use confluent-kafka-python to consume without setting
group.id
?The platform documentation said "You should always configure group.id unless you are using the simple assignment API and you don’t need to store offsets in Kafka" and didn't hint anything's different about the python API (or maybe I was just blind). In the python API I see I can call
consumer.assign
. I tried, and it gave me an_UNKNOWN_GROUP
error.The text was updated successfully, but these errors were encountered: