kafka-producer-api

NoBrokersAvailable: NoBrokersAvailable-Kafka Error

NoBrokersAvailable: NoBrokersAvailable-Kafka Error Question: 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 create a partition. from kafka import TopicPartition (ERROR THERE) consumer = KafkaConsumer(bootstrap_servers=’localhost:1234′) consumer.assign([TopicPartition(‘foobar’, 2)]) msg = next(consumer) traceback (most recent …

Total answers: 7