zoukankan      html  css  js  c++  java
  • CDH5.16.1的kafka集群报错: No broker in ISR for partition [getngo_collect_apm_test,0]

    1 详细错误

    kafka.common.NoReplicaOnlineException: No broker in ISR for partition [getngo_collect_apm_test,0] is alive. Live brokers are: [Set(112, 113, 114, 115)], ISR brokers are: [116]
            at kafka.controller.OfflinePartitionLeaderSelector.selectLeader(PartitionLeaderSelector.scala:66)
            at kafka.controller.PartitionStateMachine.electLeaderForPartition(PartitionStateMachine.scala:342)
            at kafka.controller.PartitionStateMachine.kafka$controller$PartitionStateMachine$$handleStateChange(PartitionStateMachine.scala:203)
            at kafka.controller.PartitionStateMachine$$anonfun$triggerOnlinePartitionStateChange$3.apply(PartitionStateMachine.scala:118)
            at kafka.controller.PartitionStateMachine$$anonfun$triggerOnlinePartitionStateChange$3.apply(PartitionStateMachine.scala:115)
            at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:733)
            at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:99)
            at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:99)
            at scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:230)
            at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:40)
            at scala.collection.mutable.HashMap.foreach(HashMap.scala:99)
            at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:732)
            at kafka.controller.PartitionStateMachine.triggerOnlinePartitionStateChange(PartitionStateMachine.scala:115)
            at kafka.controller.KafkaController.onBrokerStartup(KafkaController.scala:440)
            at kafka.controller.ReplicaStateMachine$BrokerChangeListener$$anonfun$handleChildChange$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(ReplicaStateMachine.scala:374)
            at kafka.controller.ReplicaStateMachine$BrokerChangeListener$$anonfun$handleChildChange$1$$anonfun$apply$mcV$sp$1.apply(ReplicaStateMachine.scala:358)
            at kafka.controller.ReplicaStateMachine$BrokerChangeListener$$anonfun$handleChildChange$1$$anonfun$apply$mcV$sp$1.apply(ReplicaStateMachine.scala:358)
                                                                                                                                 22332,1       99%
            at scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:230)
            at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:40)
            at scala.collection.mutable.HashMap.foreach(HashMap.scala:99)
            at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:732)
            at kafka.controller.PartitionStateMachine.triggerOnlinePartitionStateChange(PartitionStateMachine.scala:115)
            at kafka.controller.PartitionStateMachine.startup(PartitionStateMachine.scala:70)
            at kafka.controller.KafkaController.onControllerFailover(KafkaController.scala:343)
            at kafka.controller.KafkaController$$anonfun$1.apply$mcV$sp(KafkaController.scala:167)
            at kafka.server.ZookeeperLeaderElector.elect(ZookeeperLeaderElector.scala:84)
            at kafka.server.ZookeeperLeaderElector$$anonfun$startup$1.apply$mcZ$sp(ZookeeperLeaderElector.scala:50)
            at kafka.server.ZookeeperLeaderElector$$anonfun$startup$1.apply(ZookeeperLeaderElector.scala:48)
            at kafka.server.ZookeeperLeaderElector$$anonfun$startup$1.apply(ZookeeperLeaderElector.scala:48)
            at kafka.utils.CoreUtils$.inLock(CoreUtils.scala:231)
            at kafka.server.ZookeeperLeaderElector.startup(ZookeeperLeaderElector.scala:48)
            at kafka.controller.KafkaController$$anonfun$startup$1.apply$mcV$sp(KafkaController.scala:683)
            at kafka.controller.KafkaController$$anonfun$startup$1.apply(KafkaController.scala:679)
            at kafka.controller.KafkaController$$anonfun$startup$1.apply(KafkaController.scala:679)
            at kafka.utils.CoreUtils$.inLock(CoreUtils.scala:231)
            at kafka.controller.KafkaController.startup(KafkaController.scala:679)
            at kafka.server.KafkaServer.startup(KafkaServer.scala:202)
            at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37)
            at kafka.Kafka$.main(Kafka.scala:67)
            at com.cloudera.kafka.wrap.Kafka$.main(Kafka.scala:76)
            at com.cloudera.kafka.wrap.Kafka.main(Kafka.scala)
    

    2 查了下网上说是选举出问题了。自己因为是在重启集群,所以出现了上述报错。但是稳定运行一段时间后,不再报错。kakfa版本是CDH版本的0.10版本的kafka。  

  • 相关阅读:
    centos7下git服务器端搭建(转)
    IDEA各个版本激活(亲测有效,永久有效)(转)
    维护贴--linux下 mysql数据库的备份和还原 (转)
    维护贴--验证可用--mysql给root开启远程访问权限,修改root密码(转)
    开通mysql root 用户远程访问权限(转)
    安装mysql时包冲突解决方法
    mysql5.5 for linux 安装(转)
    Centos中iptables和firewall防火墙开启、关闭、查看状态、基本设置等(转)
    一个div宽度不固定的左右居中效果
    多行文字在一个div中上下左右居中
  • 原文地址:https://www.cnblogs.com/QuestionsZhang/p/11709046.html
Copyright © 2011-2022 走看看