java.nio.file.FileSystemException: D:kafka_2.12-2.1.0kafka_2.12-2.1.0logs\__consumer_offsets-300000000000000000000.timeindex.cleaned: 另一个程序正在使用此文件,进程无法访问。

在启动kafka时候报错:

java.nio.file.FileSystemException: D:kafka_2.12-2.1.0kafka_2.12-2.1.0logs\__consumer_offsets-300000000000000000000.timeindex.cleaned: 另一个程序正在使用此文件,进程无法访问。

原因是因为在logs中文件有问题,那么可以删除配置文件

文件夹下文件,还有就是重新建立一个文件夹

原文地址:https://www.cnblogs.com/xiufengchen/p/10960951.html