I followed the excellent step-by-step guide on installing Kafka on Linux . Everything worked fine for me until I restarted Linux. After rebooting, I get the following error when I try to use the queue with kafka-console-consumer.sh .
$ ~/kafka/bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic TutorialTopic --from-beginning
[2016-02-04 03: 16: 54,944] WARN [console-consumer-6966_bob-kafka-storm-1454577414492-8728ae43], brokers were not found when trying to rebalance . (Kafka.consumer.ZookeeperConsumerConnector)
Before I ran the kafka-console-consumer.sh script, I moved the data to the Kafka queue using the kafka-console-producer.sh script. These steps worked without problems before rebooting Linux.
I can fix the error by manually starting Kafka; but I would prefer Kafka to start automatically.
What can cause Kafka to start incorrectly after a restart?
source share