-
Notifications
You must be signed in to change notification settings - Fork 919
Closed
Labels
status:needs-more-infoIssues that require more information to cleanup.Issues that require more information to cleanup.
Description
I am simply trying to read messages from Kafka partition in a topic. Here is my code:
partition = 1
par=1
#msg = consumer.poll(1.0)
partition = TopicPartition(topic, partition)
consumer.assign([partition])
offset_tuple=consumer.get_watermark_offsets(partition)
offset=offset_tuple[0]
print(offset)
#print(consumer.get_watermark_offsets(partition)[0])
partition1 = TopicPartition(topic, par,offset)
consumer.assign([partition1])
consumer.seek(partition1)
print(consumer.position([partition1]) )
msg = consumer.poll(1000000000.0)
print(msg.value())
I get an error - AttributeError: 'NoneType' object has no attribute value
I am using kafka python version 1.6.0
@edenhill and others, Can someone help me please? I am not sure why I am getting this error message?
Metadata
Metadata
Assignees
Labels
status:needs-more-infoIssues that require more information to cleanup.Issues that require more information to cleanup.