kafka 启动开始生产数据 WARN Error while fetching metadata with correlation id 39 :
可能的情况:1. 先启动kafkaserver 后启动的zookeeper 正确方式,先启动zk ,后启动kafkaserver2. 添加配置在kafka-server 中 listeners=PLAINTEXT://localhost:9092 ############################# Socket Server Settings ############...
可能的情况:
1. 先启动kafkaserver 后启动的zookeeper 正确方式,先启动zk ,后启动kafkaserver
2. 添加配置在kafka-server 中 listeners=PLAINTEXT://localhost:9092
############################# Socket Server Settings #############################
# The address the socket server listens on. It will get the value returned from
# java.net.InetAddress.getCanonicalHostName() if not configured.
# FORMAT:
# listeners = listener_name://host_name:port
# EXAMPLE:
# listeners = PLAINTEXT://your.host.name:9092
listeners=PLAINTEXT://localhost:9092
如果还没有解决问题,可以参考https://stackoverflow.com/questions/35788697/leader-not-available-kafka-in-console-producer
更多推荐
所有评论(0)