无法使用.\ 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
问题描述
当我在cmd提示符下执行以下命令时,我已经预先配置了zookeeper和kafka,并进行了所有更改.\ 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预配置使用了以下链接: https://dzone.com/articles/running-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屋!