手动删除这个文件。
E:\WorkSoftware\kafka_2.11-1.0.0\logs\test.topic-0\00000000000000000000.timeindex
怎么真正把之前的服务给关闭
跟上面报的一样额,我是没遇到过,你可以先确定是否真正的把之前的服务给关闭了。
在哪个位置运行?另外我这个报错您能帮我看看么
WARN Found a corrupted index file due to requirement failed: Corrupt index found, index file (E:\WorkSoftware\kafka_2.11-1.0.0\logs\test.topic-0\00000000000000000000.index) has non-zero size but the last offset is 0 which is no larger than the base offset 0.}. deleting E:\WorkSoftware\kafka_2.11-1.0.0\logs\test.topic-0\00000000000000000000.timeindex, E:\WorkSoftware\kafka_2.11-1.0.0\logs\test.topic-0\00000000000000000000.index, and E:\WorkSoftware\kafka_2.11-1.0.0\logs\test.topic-0\00000000000000000000.txnindex and rebuilding index... (kafka.log.Log)
[2017-12-21 20:11:13,952] ERROR Error while loading log dir E:\WorkSoftware\kafka_2.11-1.0.0\logs (kafka.log.LogManager)
java.nio.file.FileSystemException: E:\WorkSoftware\kafka_2.11-1.0.0\logs\test.topic-0\00000000000000000000.timeindex: 另一个程序正在使用此文件,进程无法访问。
ps -ef|grep Kafka|awk '{print $2}'|xargs kill -9