我当前在CrashLoopBackOff中遇到了kafka kubernetes吊舱
kafka-prod-4 1/2 CrashLoopBackOff 2640 15d
由于存在相关错误,我相信
[ReplicaFetcher replicaId=1, leaderId=2, fetcherId=0] Exiting because log truncation is not allowed for partition __consumer_offsets-5, current leader's latest offset 0 is less than replica's latest offset 4 (kafka.server.ReplicaFetcherThread)
我开始寻找partition __consumer_offsets-5
以及副本偏移量以尝试更改偏移量,这样就不会出现此错误,但我很难找到partition __consumer_offsets-5
来更改偏移量。
kafka-run-class kafka.tools.GetOffsetShell --broker-list kafka-prod:9092 --topic sfoo-SfooEvent --time -1
sfoo-SfooEvent:0:472643
sfoo-SfooEvent:1:472390
sfoo-SfooEvent:2:170840
https://issues.apache.org/jira/browse/KAFKA-3410
https://github.com/Yolean/kubernetes-kafka/issues/98
我在这里看到的一些日志https://pastebin.com/hDQCefY7
有人看到此错误的解决方案了吗?我是否必须对集群进行核对并重新从头开始?