You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.
I created two consumers through the code. When I tried to use the publisher to publish the data, I saw that the data obtained by the two consumers is the same data.
Version used:
pykafka 2.8.0
python 3.6
client = KafkaClient(hosts=hosts)
topic = client.topics['test']
consumer = topic.get_simple_consumer(consumer_group = 'test1',
consumer_id='test_client2', #334 Different ID
auto_commit_enable=True)
for message in consumer:
print(message.value.decode())
The text was updated successfully, but these errors were encountered:
Thanks @stone0311. To make debugging possible, please indicate what behavior you expect from this use case as well as how the observed behavior differs from it.
Thanks @stone0311. To make debugging possible, please indicate what behavior you expect from this use case as well as how the observed behavior differs from it.
I expect different consumers to get different data under the same kafka topic, but I set different consumer_id and same consumer_group by creating different consumers, and the last data obtained is the same data.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I created two consumers through the code. When I tried to use the publisher to publish the data, I saw that the data obtained by the two consumers is the same data.
Version used:
pykafka 2.8.0
python 3.6
The text was updated successfully, but these errors were encountered: