Kafka - with Java/Python
Identify the error in this Python
confluent-kafka producer code:
from confluent_kafka import Producer
p = Producer({'bootstrap.servers': 'localhost:9092'})
p.produce('my_topic', key='key1', 'hello')
p.flush()