0

我安装了 Kafka 并在本地配置了环境变量。但是在打开时,我得到了 - java.nio.file.AccessDeniedException 并且它正在关闭 Kafka

[2021-09-27 18:41:47,149] INFO Stat of the created znode at /brokers/ids/0 is: 
58,58,1632748307126,1632748307126,1,0,0,72059442372804608,218,0,58
(kafka.zk.KafkaZkClient)
[2021-09-27 18:41:47,151] INFO Registered broker 0 at path /brokers/ids/0 with addresses: 
PLAINTEXT://001383.eu.pxl.int:9092, czxid (broker epoch): 58 (kafka.zk.KafkaZkClient)
[2021-09-27 18:41:47,179] ERROR Failed to write meta.properties due to 
(kafka.server.BrokerMetadataCheckpoint)
java.nio.file.AccessDeniedException: C:\pyspark\kafka2\kafka-logs\server0
    at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
    at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:115)
    at java.nio.channels.FileChannel.open(FileChannel.java:287)
    enter code here

 [2021-09-27 18:41:47,192] ERROR [KafkaServer id=0] Fatal error during KafkaServer startup. 
 Prepare to shutdown (kafka.server.KafkaServer)
 java.nio.file.AccessDeniedException: C:\pyspark\kafka2\kafka-logs\server0
    at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
    at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
    at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:115)
    at java.nio.channels.FileChannel.open(FileChannel.java:287)
4

0 回答 0