由于另一个进程使用的日志文件,无法启动Kafka?

时间:2018-05-14 16:39:58

标签: apache-kafka

我下载了Kafka并在我的本地Windows上运行它以进行测试/开发。它工作了几天,现在它收到以下错误。我尝试使用进程资源管理器,除了Kafka启动时(java.exe),任何进程都不使用该文件。

  

java.nio.file.FileSystemException:C:\ tools \ kafka_2.12-1.1.0 \ kafka-logs \ my-replicated-topic-0 \ 00000000000000000000.log - > C:\ tools \ kafka_2.12-1.1.0 \ kafka-logs \ my-replicated-topic-0 \ 00000000000000000000.log.deleted:进程无法访问该文件,因为它正由另一个进程使用。

[2018-05-14 11:25:35,965] INFO [GroupMetadataManager brokerId=0] Finished loading offsets and group metadata from __consumer_offsets-48 in 0 milliseconds. (kafka.coordinator.group.GroupMetadataManager)
[2018-05-14 11:26:04,864] INFO [Log partition=my-replicated-topic-0, dir=C:\tools\kafka_2.12-1.1.0\kafka-logs] Found deletable segments with base offsets [0] due to retention time 604800000ms breach (kafka.log.Log)
[2018-05-14 11:26:04,869] INFO [Log partition=my-replicated-topic-0, dir=C:\tools\kafka_2.12-1.1.0\kafka-logs] Scheduling log segment [baseOffset 0, size 150] for deletion. (kafka.log.Log)
[2018-05-14 11:26:04,882] ERROR Error while deleting segments for my-replicated-topic-0 in dir C:\tools\kafka_2.12-1.1.0\kafka-logs (kafka.server.LogDirFailureChannel)
java.nio.file.FileSystemException: C:\tools\kafka_2.12-1.1.0\kafka-logs\my-replicated-topic-0\00000000000000000000.log -> C:\tools\kafka_2.12-1.1.0\kafka-logs\my-replicated-topic-0\00000000000000000000.log.deleted: The process cannot access the file because it is being used by another process.

0 个答案:

没有答案