Created
November 29, 2021 08:32
-
-
Save Verina-Armanyous/c8b4eeef17b7fb3c77bd9a0cf2ae7054 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kafka import KafkaConsumer | |
consumer = KafkaConsumer( | |
'tutorial',bootstrap_servers=['localhost:9092'], | |
value_deserializer=lambda x: loads(x.decode('utf-8'))) | |
for message in consumer: | |
print(message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment