当前位置: 首页 > news >正文

kafka2.8出现NotLeaderOrFollowerException

具体错误信息:
org.apache.kafka.common.errors.NotLeaderOrFollowerException: For requests intended only for the leader, this error indicates that the broker is not the current leader. For requests intended for any replica, this error indicates that the broker is not a replica of the topic partition.

5个集群的kafka,由于其中两个不知道什么原因挂掉了,导致数据无法同步,主题isr同步信息如下:

kafka-topics.sh --bootstrap-server 地址:端口,逗号分隔 --describe --topic flighttask_progress_data
        Topic: a Partition: 0    Leader: 4       Replicas: 1,4   Isr: 4Topic: a Partition: 1    Leader: 2       Replicas: 4,2   Isr: 2Topic: a Partition: 2    Leader: 2       Replicas: 2,3   Isr: 3,2Topic: a Partition: 3    Leader: 3       Replicas: 3,5   Isr: 3Topic: a Partition: 4    Leader: 5       Replicas: 5,1   Isr: 5,1Topic: a Partition: 5    Leader: 2       Replicas: 1,2   Isr: 2Topic: a Partition: 6    Leader: 4       Replicas: 4,3   Isr: 3,4Topic: a Partition: 7    Leader: 2       Replicas: 2,5   Isr: 2Topic: a Partition: 8    Leader: 3       Replicas: 3,1   Isr: 1,3Topic: a Partition: 9    Leader: 4       Replicas: 5,4   Isr: 4

解决办法:
删除主题,自动重新创建后正常

kafka-topics.sh --bootstrap-server 地址:端口,逗号分隔 --delete --topic flighttask_progress_data
http://www.jsqmd.com/news/18396/

相关文章:

  • IEC 61850 ICD文件解析
  • 2025安全光栅厂家推荐安一光电,超薄无盲区设计守护工业安全
  • 用poi导入Excel
  • 2025无锡新梅赛智能设备厂家推荐:全自动视觉定位点胶机专业制造商
  • 2025石头纸设备厂家权威推荐:鼎浩包装科技环保吹塑机制造专家
  • 实用指南:【ATBS with Python】QA Chap2 If-else and Flow Control
  • 用 Python 轻松克服 PDF 指定页替换为图片的痛点难题
  • Java面试题总结
  • 读书笔记:Oracle分区技术详解
  • 2025精密光电厂家推荐:柯依努UV固化设备专业定制,品质保障!
  • 徐老师2025新版Nodejs课程含项目实战
  • Moe-ctf Misc部分题解
  • Oracle故障分析:启用与禁用表的约束是否会导致存储过程无效
  • 详细介绍:isis整体知识梳理
  • DBA必备脚本:Oracle获取正在运行SQL的字面SQL文本
  • 一文读懂字符、字形、字体
  • Moe-ctf Misc
  • 智联笔记项目——251021为分享功能添加有效期
  • 直方图
  • 深入解析:手撕哈希全家桶!unordered_map/set 底层 + 位图布隆过滤器----《Hello C++ Wrold!》(24)--(C/C++)
  • Flink 方案配置从 0 到可部署
  • 昂贵多目标优化
  • Redis为什么快 - 实践
  • 操作系统应用开发(二十一)RustDesk 域名访问故障—东方仙盟筑基期 - 详解
  • 详细介绍:【多线程】无锁数据结构(Lock-Free Data Structures)是什么?
  • 完整教程:【STM32】通用输入输出端口GPIO
  • AI元人文:岐金兰的“阴谋”
  • prufer板子
  • 军用混合现实头盔EagleEye的技术解析
  • 2025电子数据取证分析师WriteUp