Zookeeper 在Windows上运行Kafka,但日志文件夹出现拒绝访问异常

6za6bjd0  于 2022-12-09  发布在  Apache
关注(0)|答案(2)|浏览(212)

I've been trying to run both zookeeper and kafka 2.13 on my local windows machine. I have modified the server properties to point to c:/kafka/kafka-logs and zookeeper data to point to c:/kafka/zookeeper-data.
The zookeeper starts without any issues but when I attempt to start kafka with

.\bin\windows\kafka-server-start.bat .\config\server.properties

I get the below error saying AccessDeniedException. I have already tried the below:

  1. Deleting the kafka-logs and zookeeper-data folders and running both zookeeper and kafka again - I still run into the error if I do that
  2. Creating the kafka-logs folder before running kafka - I still get the access denied exception
  3. Running the command prompt as administrator before typing the commands - does not work

Could anyone give some suggestions on how to fix this?
Thank you

uinbv5nw

uinbv5nw1#

你用的Kafka版本是什么?。
我在3.0.0中有这个问题。我降级到2.8.1,问题解决了。
我想是和Kafka有关的东西。

unhi4e5o

unhi4e5o2#

我用Kafka 3.0重现了同样的问题。降级到2.8.1会有帮助。

相关问题