本帖最后由 ighack 于 2019-5-22 16:26 编辑
kafka运行一段时间以后会报这样的错
[mw_shl_code=shell,true][2019-05-07 14:42:42,987] ERROR [ReplicaFetcherThread-0-2], Error for partition [Parallel_Computing_Bill_CS,0] to broker 2:org.apache.kafka.common.errors.NotLeaderForPartitionEx
ception: This server is not the leader for that topic-partition. (kafka.server.ReplicaFetcherThread)
[2019-05-07 14:42:42,987] ERROR [ReplicaFetcherThread-0-2], Error for partition [LMIS_TO_JLP,7] to broker 2:org.apache.kafka.common.errors.NotLeaderForPartitionException: This s
erver is not the leader for that topic-partition. (kafka.server.ReplicaFetcherThread)
[2019-05-07 14:42:42,987] ERROR [ReplicaFetcherThread-0-2], Error for partition [JLP_TO_LMIS_HBNET,1] to broker 2:org.apache.kafka.common.errors.NotLeaderForPartitionException:
This server is not the leader for that topic-partition. (kafka.server.ReplicaFetcherThread)
[2019-05-07 14:42:44,352] ERROR [ReplicaFetcherThread-0-2], Error for partition [Parallel_Computing_Bill_CS,0] to broker 2:org.apache.kafka.common.errors.NotLeaderForPartitionEx
ception: This server is not the leader for that topic-partition. (kafka.server.ReplicaFetcherThread)
[2019-05-07 14:42:44,352] ERROR [ReplicaFetcherThread-0-2], Error for partition [LMIS_TO_JLP,7] to broker 2:org.apache.kafka.common.errors.NotLeaderForPartitionException: This s
erver is not the leader for that topic-partition. (kafka.server.ReplicaFetcherThread)
[2019-05-07 14:42:44,353] ERROR [ReplicaFetcherThread-0-2], Error for partition [JLP_TO_LMIS_HBNET,1] to broker 2:org.apache.kafka.common.errors.NotLeaderForPartitionException:
This server is not the leader for that topic-partition. (kafka.server.ReplicaFetcherThread)
[2019-05-07 14:42:47,714] ERROR [ReplicaFetcherThread-0-2], Error for partition [LMIS_TO_JLP,7] to broker 2:org.apache.kafka.common.errors.NotLeaderForPartitionException: This s
erver is not the leader for that topic-partition. (kafka.server.ReplicaFetcherThread)
[2019-05-07 14:42:47,714] ERROR [ReplicaFetcherThread-0-2], Error for partition [JLP_TO_LMIS_HBNET,1] to broker 2:org.apache.kafka.common.errors.NotLeaderForPartitionException:
This server is not the leader for that topic-partition. (kafka.server.ReplicaFetcherThread)[/mw_shl_code]
zookeeper会发现一些超时的报错
[mw_shl_code=shell,true]stablished session 0x168dcba3f680148 with negotiated timeout 6000 for client /10.3.87.24:14093[/mw_shl_code]
像是这样的6000正好是kafka设的超时 时间
我现在把时间调到了12000
感觉像是选举出现错误了。但是我把掉了的那一台重启也不行
非要把5台机器全部重启一次就好了。一段时间就又报错了
|