Kafka + Zookeeper: Connection to node -1 could not be established. Broker may not be available

后端 未结 5 528
一整个雨季
一整个雨季 2020-12-17 07:54

I am running in my locahost both Zookeeper and Kafka (1 instance each).

I create succesfully a topic from kafka:

./bin/kafka-topics.sh --zookeeper lo         


        
5条回答
  •  天命终不由人
    2020-12-17 08:12

    If this happens suddenly after it was working, you should try to restart Kafka first.

    In my case, restarting solved the problem:

    $docker-compose down && docker-compose up -d
    

提交回复
热议问题