简体   繁体   English

在 Windows 上运行 Kafka,但获取日志文件夹的访问被拒绝异常

[英]Running Kafka on Windows but getting Access denied exception for logs folder

I've been trying to run both zookeeper and kafka 2.13 on my local windows machine.我一直在尝试在我的本地 windows 机器上同时运行 zookeeper 和 kafka 2.13。 I have modified the server properties to point to c:/kafka/kafka-logs and zookeeper data to point to c:/kafka/zookeeper-data.我修改了服务器属性指向 c:/kafka/kafka-logs 和 zookeeper 数据指向 c:/kafka/zookeeper-data。

The zookeeper starts without any issues but when I attempt to start kafka with zookeeper 启动时没有任何问题,但是当我尝试启动 kafka 时

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

I get the below error saying AccessDeniedException.我收到以下错误提示 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删除 kafka-logs 和 zookeeper-data 文件夹并再次运行 zookeeper 和 kafka - 如果我这样做我仍然会遇到错误
  2. Creating the kafka-logs folder before running kafka - I still get the access denied exception在运行 kafka 之前创建 kafka-logs 文件夹 - 我仍然收到拒绝访问异常
  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谢谢

what is the kafka version you are using?.你使用的是什么卡夫卡版本?

I has this issue in 3.0.0 .我在3.0.0中有这个问题。 I downgraded to 2.8.1 and the issue is resolved.我降级到2.8.1 ,问题解决了。

I think it is something related to kafka.我认为这与kafka有关。

I reproduced the same issue with Kafka 3.0.我用 Kafka 3.0 重现了同样的问题。 Downgrading to 2.8.1 will help.降级到 2.8.1 会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Windows Azure上运行WCF服务时获取“拒绝访问”异常消息 - Getting 'Access is Denied' exception message when running WCF service on Windows Azure 在 windows 上更改权限后访问文件时出现间歇性“访问被拒绝”异常 - Getting intermittent "Access is Denied" exception when accessing a file after changing the permissions on windows 在没有cygwin的Windows 7中运行Hadoop-2.3 Mapreduce作业时获取访问被拒绝错误 - Getting Access Denied Error While Running Hadoop-2.3 Mapreduce Jobs in windows 7 without cygwin Windows C ++:文件夹移动访问被拒绝错误 - Windows C++: Folder moving Access Denied error 尝试在文件夹中写入时,C#Windows Service Access被拒绝 - C# Windows Service Access denied when trying to write in a folder 在Windows上运行Kafka - Running Kafka on Windows Windows中文件权限未更改,但拒绝访问错误 - files permission is not changing in windows getting error access is denied 如何在没有得到 ERROR_ACCESS_DENIED 的情况下将文件写入 PhysicalDrive (Windows 7)? - How to WriteFile to a PhysicalDrive (Windows 7) without getting ERROR_ACCESS_DENIED? Windows 7上的StartServiceCtrlDispatcher访问被拒绝 - StartServiceCtrlDispatcher access denied on windows 7 SUBINACL被拒绝访问 - SUBINACL getting access denied
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM