kafka AdminClient API Timed out waiting for node assignment

前端 未结 2 560
挽巷
挽巷 2021-02-19 07:47

I\'m new to Kafka and am trying to use the AdminClient API to manage the Kafka server running on my local machine. I have it setup exactly the same as in the quick

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-19 08:17

    I started kafka service with bitnami/kafka, and got exactly the same error. Try to start kafka by this version, it works: https://hub.docker.com/r/wurstmeister/kafka

    $ docker run -d --name zookeeper-server --network app-tier \
      -e ALLOW_ANONYMOUS_LOGIN=yes  -p 2181:2181 zookeeper:3.6.2
    
    $ docker run -d --name kafka-server --network app-tier --publish 9092:9092 \
      --env KAFKA_ZOOKEEPER_CONNECT=zookeeper-server:2181 \
      --env KAFKA_ADVERTISED_HOST_NAME=30.225.51.235 \
      --env KAFKA_ADVERTISED_PORT=9092  \
      wurstmeister/kafka
    

    30.225.51.235 is ip address for the host machine.

提交回复
热议问题