单点启动消费者
kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic topic_1
启动kafka时出现错误:Error while fetching metadata with correlation id 391
[2020-12-27 00:58:44,056] WARN [Consumer clientId=consumer-1, groupId=console-consumer-6613] Error while fetching metadata with correlation id 391 : {topic_1=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
解决方法:
修改 config\server.properties
,修改内容如下:
advertised.listeners=PLAINTEXT://localhost:9092 ##打开注释
原文:https://www.cnblogs.com/andrew037/p/14193552.html