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

阅读 5.1k
评论 2017-08-15 提问
    2 个回答
    小臣
    • -4
    • 新人请关照

    问题解决了吗?原因是?

    评论 赞赏
      sun88
      • 2
      • 新人请关照

      删除 C:\tmp\kafka-logs

      评论 赞赏
        撰写回答

        登录后参与交流、获取后续更新提醒