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

后端 未结 5 525
一整个雨季
一整个雨季 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:17

    UPD: if you are running in single-node mode:

    I have seen this message in spark console log while trying to deploy application. Solved by changing this parameter in server.properties:

    listeners=PLAINTEXT://myhostname:9092
    

    to

    listeners=PLAINTEXT://localhost:9092
    

    make sure that you have java process listening on 9092 with netstat -lptu

提交回复
热议问题