Kafka启动报错AccessDeniedException

编程

[2020-01-20 15:14:34,042] ERROR Error while renaming dir for test-0 in log dir D:hecgkafka_2.12-2.4.0datakafka-logs (kafka.server.LogDirFailureChannel)

java.nio.file.AccessDeniedException: D:hecgkafka_2.12-2.4.0datakafka-logs est-0 -> D:hecgkafka_2.12-2.4.0datakafka-logs est-0.19a32e99d23e4dd484a27c1f94b8fc8e-delete

at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)

at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)

at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387)

at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)

出现的原因是,刚才不小心手动删掉了logs目录,导致实际logs和zookeeper中的状态不一致。

解决办法:删掉zookeeper的data文件,重启就好了

以上是 Kafka启动报错AccessDeniedException 的全部内容, 来源链接: utcz.com/z/512909.html

回到顶部