Error while fetching metadata with correlation id 47  {test1=LEADER_NOT_AVA

Error while fetching metadata with correlation id 47 {test1=LEADER_NOT_AVA



Error while fetching metadata with correlation id 47 :

{test1=LEADER_NOT_AVAILABLE}

Error while fetching metadata with correlation id :

{LEADER_NOT_AVAILABLE}

表示无法识别kafka hostname

正确处理姿势

1、修改server.properties如下,目的是让kafka监听的到 红框两个都要写

vi /opt/kafka/kafka/config/server.properties

笔记插图(第 1 页)

同时一定写正确主机名称,切记!!

我的之前写成hostname,正确的是host.name !注意一定要多看配置中的

注释和小心谨慎。否则后期的排除bug真心是个力气活!!!

笔记插图(第 2 页)