Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 749
Anoop Avatar asked Mar 09 '23 17:03

Anoop


2 Answers

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

like image 101
darshan kamat Avatar answered Mar 12 '23 08:03

darshan kamat


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.

like image 20
V SANTOSH PAVAN RAJU Bs Avatar answered Mar 12 '23 07:03

V SANTOSH PAVAN RAJU Bs