为什么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

  1. 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

阅读 8.2k
2 个回答
新手上路,请多包涵

问题解决了吗?原因是?

删除 C:\tmp\kafka-logs

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进