无法使用 .\bin\windows\kafka-server-start.bat .\config\server.properties cmd 启动 kafka [英] Not able to start kafka with .\bin\windows\kafka-server-start.bat .\config\server.properties cmd
问题描述
我已经预先配置了 zookeeper 和 kafka,并在我在 cmd 提示符下执行以下命令时进行了所有更改.\bin\windows\kafka-server-start.bat .\config\server.properties
I have preconfigured zookeeper and kafka and after making all the changes when i execute below command in cmd prompt .\bin\windows\kafka-server-start.bat .\config\server.properties
抛出以下错误'wmic' 不被识别为内部或外部命令,可运行的程序或批处理文件.
following error is thrown 'wmic' is not recognized as an internal or external command, operable program or batch file.
请为此提出建议.
对于 kafka 预配置使用 fowwloing 链接的步骤:https://dzone.com/文章/运行-apache-kafka-on-windows-os
推荐答案
我遇到了类似的问题.我将 C:\Windows\System32\wbem
添加到路径.
I had similar issue. I added C:\Windows\System32\wbem
to path.
现在我没有收到同样的错误,但在启动 kafka-server 后没有打印日志.
Now I am not getting the same error but no logs are getting printed after starting kafka-server.
这篇关于无法使用 .\bin\windows\kafka-server-start.bat .\config\server.properties cmd 启动 kafka的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!