8 lines
166 B
Python
8 lines
166 B
Python
from kafka import KafkaProducer, KafkaConsumer
|
|
import kafka
|
|
import socket
|
|
|
|
consumer = KafkaConsumer(bootstrap_servers = ['localhost:9092'])
|
|
|
|
print(consumer.topics())
|