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
Then we launch our script first_consumer.py and wait him to get his assignment and then launch the second script second_consumer.py.
This sequence leads to join_group_request during the second consumer connection, which in turn calls assignor.metadata(). Eventually, in assignor.metadata we are trying to encode user_data:
It is not possible to add a new consumer to an existing group with a
StickyPartitionAssignor
due to the lack of__len__
method indict_itemiterator
.Kafka version 1.0.1 (https://archive.apache.org/dist/kafka/1.0.1/kafka_2.11-1.0.1.tgz)
Python 3.8
kafka-python 2.0.2
Suppose we have
first_consumer.py
:And
second_consumer.py
Then we launch our script
first_consumer.py
and wait him to get his assignment and then launch the second scriptsecond_consumer.py
.This sequence leads to
join_group_request
during the second consumer connection, which in turn callsassignor.metadata()
. Eventually, inassignor.metadata
we are trying to encodeuser_data
:But
items
is type ofdict_iteritem
(which is six.iteritems) and has no__len__
defined. And this is the reason for the following exception:Maybe @aynroot can help here.
The text was updated successfully, but these errors were encountered: