Kafka节点异常终止索引文件损坏

林开心 发表于: 2021-07-27   最后更新时间: 2021-07-27 18:26:57   902 游览

1、集群内大量节点出现索引文件损坏的问题如何可以快速的解决,恢复集群功能?
2、索引文件损坏就只能够删除对应的索引文件了吗?

[2021-07-27 16:30:14,736] WARN Found a corrupted index file due to requirement failed: Corrupt index found, index file (/tmp/kafka-logs/test-10/00000000003208766580.index) has non-zero size but the last offset is 3208766580 which is no larger than the base offset 3208766580.}. deleting /tmp/kafka-logs/test-10/00000000003208766580.timeindex, /tmp/kafka-logs/test-10/00000000003208766580.index, and /tmp/kafka-logs/test-10/00000000003208766580.txnindex and rebuilding index... (kafka.log.Log)

发表于 2021-07-27
添加评论

是的,/tmp目录会被linux自行回收了,导致数据缺失了。
所以,一定不要放在/tmp下。

林开心 -> 半兽人 2年前

好的,就是不放在tmp下面的话也得需要删除日志内提示的文件才可以吗?

半兽人 -> 林开心 2年前

嗯,已经损坏了。

你的答案

查看kafka相关的其他问题或提一个您自己的问题