kafka问题解决:Error while fetching metadata with correlation id 1 : {alarmHis=LEADER_NOT_AVAILABLE}
环境springboot2 + kafka_2.11-1.1.0,kafka是单机版环境报错提示Error while fetching metadata with correlation id 1 : {alarmHis=LEADER_NOT_AVAILABLE}报错原因获取相关ID为xx的元数据时出错问题解决修改 config\server.properties,修改内容如...
·
环境
springboot2 + kafka_2.11-1.1.0,kafka是单机版环境
报错提示
Error while fetching metadata with correlation id 1 : {alarmHis=LEADER_NOT_AVAILABLE}
报错原因
获取相关ID为xx的元数据时出错
问题解决
-
修改
config\server.properties
,修改内容如下:listeners=PLAINTEXT://localhost:9092 advertised.listeners=PLAINTEXT://localhost:9092
-
重启kafka,启动程序进行入库操作
结果
顺利解决
更多推荐
所有评论(0)