i have already started to learn Kafka. Trying basic operations on it. I have stucked on a point which about the \'Brokers\'.
My kafka is running but when i want to
I had the same error during kafka streaming. The code below resolved my error: We need to define the API version in KafkaProducer.
KafkaProducer(bootstrap_servers=['localhost:9092'], api_version=(0,11,5), value_serializer=lambda x: dumps(x).encode('utf-8'))