为什么win10下 kafka 0.11重启时报timeindex文件被占用?
[2017-08-15 14:28:29,406] WARN Found a corrupted index file due to requirement f
ailed: Corrupt index found, index file (D:kafka-stackkafka-logsmsg-000000000
000000000000.index) has non-zero size but the last offset is 0 which is no large
r than the base offset 0.}. deleting D:kafka-stackkafka-logsmsg-000000000000
000000000.timeindex, D:kafka-stackkafka-logsmsg-000000000000000000000.index,
and D:kafka-stackkafka-logsmsg-000000000000000000000.txnindex and rebuildin
g index... (kafka.log.Log)
[2017-08-15 14:28:29,410] ERROR There was an error in one of the threads during
logs loading: java.nio.file.FileSystemException: kafka-stackkafka-logsmsg-00
0000000000000000000.timeindex: 另一个程序正在使用此文件,进程无法访问。
(kafka.log.LogManager)
[2017-08-15 14:28:29,415] FATAL [Kafka Server 0], Fatal error during KafkaServer
Prepare to shutdown (kafka.server.KafkaServer)
java.nio.file.FileSystemException: kafka-stackkafka-logsmsg-0000000000000000
00000.timeindex: 另一个程序正在使用此文件,进程无法访问。
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.j
ava:86)
... ...
at java.lang.Thread.run(Thread.java:748)
[2017-08-15 14:28:29,415] WARN Found a corrupted index file due to requirement f
ailed: Corrupt index found, index file (D:kafka-stackkafka-logs__consumer_off
sets-000000000000000000000.index) has non-zero size but the last offset is 0 wh
ich is no larger than the base offset 0.}. deleting D:kafka-stackkafka-logs__
consumer_offsets-000000000000000000000.timeindex, D:kafka-stackkafka-logs__c
onsumer_offsets-000000000000000000000.index, and D:kafka-stackkafka-logs__co
nsumer_offsets-000000000000000000000.txnindex and rebuilding index... (kafka.lo
g.L
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题解决了吗?原因是?
删除 C:\tmp\kafka-logs