Created
January 23, 2022 15:44
-
-
Save ashish-mj/35fbbd389d8affe4d41261e308413817 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 | |
bootstrap_servers = ['localhost:9092'] | |
topicName = 'Media' | |
consumer = KafkaConsumer (topicName,bootstrap_servers = bootstrap_servers) | |
for message in consumer: | |
print(message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment