• 报错:Error while fetching metadata with correlation id 67 : {alarmHis=LEADER_NOT_AVAILABLE}


    报错背景:

    单机安装了kafka,创建完成主题,启动生产者的时候产生报错现象。报错时持续不断打印日志信息。

    报错现象:

    [2019-05-21 09:43:52,790] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 59 : {alarmHis=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
    [2019-05-21 09:43:52,894] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 60 : {alarmHis=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
    [2019-05-21 09:43:52,998] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 61 : {alarmHis=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
    [2019-05-21 09:43:53,101] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 62 : {alarmHis=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
    [2019-05-21 09:43:53,205] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 63 : {alarmHis=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
    [2019-05-21 09:43:53,310] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 64 : {alarmHis=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
    [2019-05-21 09:43:53,414] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 65 : {alarmHis=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
    [2019-05-21 09:43:53,519] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 66 : {alarmHis=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
    [2019-05-21 09:43:53,623] WARN [Producer clientId=console-producer] Error while fetching metadata with correlation id 67 : {alarmHis=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)

    报错原因:

    获取相关ID为xx的元数据时出错。

    报错解决:

    1.进入到kafka的安装目录下的配置文件目录

    cd /opt/kafka/config

    2.打开server.properties配置文件

    vim server.properties

    3.修改文件内容

    4.重启kafka服务,启动生产者验证。

  • 相关阅读:
    MySQL 锁的监控及处理
    mssql sqlserver 不固定行转列数据(动态列)
    SQL常用增删改查语句--来源于网络
    mssql sqlserver 对不同群组对象进行聚合计算的方法分享
    mssql sqlserver 自动备份存储过程的方法分享
    mssql sqlserver updatetext关键字应用简介说明
    mssql sqlserver 将字段null(空值)值替换为指定值的三种方法分享
    mssql sqlserver with cte表达式(递归)找出最顶值的方法分享
    mssql sqlserver text数据类型专题说明
    mssql sqlserver 使用sql脚本 清空所有数据库表数据的方法分享
  • 原文地址:https://www.cnblogs.com/chuijingjing/p/10898288.html
Copyright © 2020-2023  润新知