报错:Error while fetching metadata with correlation id 67 : {alarmHis=LEADER_NOT_AVAILABLE}
报错 Error not with ID while available metadata
2023-09-11 14:14:33 时间
报错背景:
单机安装了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服务,启动生产者验证。
相关文章
- ERROR 1010 (HY000): Error dropping database (can't rmdir '.qpweb', errno: 41) 删库失败问题的解决
- 解决 docker 报错: Error starting daemon: error initializing graphdriver: backing file system is unsupported for this graph driver
- [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
- Error message Exception raised without specific error
- 成功解决pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 48, saw 2
- 解决登录druid监控首页时出现Whitelabel Error Page:There was an unexpected error (type=Not Found, status=404)的错误
- 【错误记录】Android Studio 编译报错 ( AAPT: error: failed to read PNG signature: file does not start with PN )
- 【错误记录】p7zip 交叉编译 Android 版本 NDK 报错 ( error: case value evaluates to -2 , which cannot be narrowed )
- 嵌入式linux开发,编译报错:error: sys/capability.h: No such file or directory #include <sys/capability.h>
- 嵌入式linux开发,编译报错:error: ‘sigset’ was not declared in this scope
- Qt开发,报错:error: C3861: “connect”: 找不到标识符
- 单片机开发,keil编译报错:..xxx.c(31): error: #70: incomplete type is not allowed memset(stmflash_buf, 0,
- Android Studio 2.3报错: Error:Cause: buildToolsVersion is not specified解决