bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group group1
报错
Note: This will not show information about old Zookeeper-based consumers.
[2021-01-22 19:04:37,515] WARN Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2021-01-22 19:04:37,579] WARN Connection to node -1 could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
原因分析:
config/server.properties 配置时 指定了具体的机器ip, 可以修改为下面的配置:
listeners=PLAINTEXT://:9092