Not able to start kafka with .\bin\windows\kafka-server-start.bat .\config\server.properties cmd

吃可爱长大的小学妹 提交于 2019-12-13 16:31:33

问题


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

following error is thrown 'wmic' is not recognized as an internal or external command, operable program or batch file.

Do suggest for this .
For steps kafka preconfiguration used fowwloing link : https://dzone.com/articles/running-apache-kafka-on-windows-os


回答1:


I had similar issue. I added C:\Windows\System32\wbem to path.

Now I am not getting the same error but no logs are getting printed after starting kafka-server.

Kafka server not returning anything




回答2:


This is because WMIC internally runs other OS commands. For this C:\Windows\System32 must be set in Classpath. If this is missing, nothing gets displayed when starting Kafka server.



来源:https://stackoverflow.com/questions/42555596/not-able-to-start-kafka-with-bin-windows-kafka-server-start-bat-config-serve

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!