我有一个3节点的kafka和3节点的zookeeper集群。每个kafka和zookeeper对都在同一VM上运行。我已将kafka版本从0.10.2.2升级到2.1.1。一天后,它开始为所有主题提供以下警告消息。 Kafka升级以滚动方式完成。 所有的kafka主题都具有复制因子2和最低ISR2。有人可以帮助获得此问题的实际根本原因。
[2019-03-28 17:23:55.877+0000] WARN [Log partition=FirstTopic-6, dir=/apps/kafka/data] Found a corrupted index file corresponding to log file /apps/kafka/data/FirstTopic-6/00000000000000000494.log due to Corrupt time index found, time index file (/apps/kafka/data/FirstTopic-6/00000000000000000494.timeindex) has non-zero size but the last timestamp is 0 which is less than the first timestamp 1553720469480}, recovering segment and rebuilding index files... (kafka.log.Log)
[2019-03-28 17:23:55.877+0000] WARN [Log partition=NewTopic-3, dir=/apps/kafka/data] Found a corrupted index file corresponding to log file /apps/kafka/data/NewTopic-3/00000000000000000494.log due to Corrupt time index found, time index file (/apps/kafka/data/NewTopic-3/00000000000000000494.timeindex) has non-zero size but the last timestamp is 0 which is less than the first timestamp 1553720469480}, recovering segment and rebuilding index files... (kafka.log.Log)
[2019-03-28 17:23:55.877+0000] WARN [Log partition=SecondTopic-3, dir=/apps/kafka/data] Found a corrupted index file corresponding to log file /apps/kafka/data/SecondTopic-3/00000000000000000494.log due to Corrupt time index found, time index file (/apps/kafka/data/SecondTopic-3/00000000000000000494.timeindex) has non-zero size but the last timestamp is 0 which is less than the first timestamp 1553720469480}, recovering segment and rebuilding index files... (kafka.log.Log)