AlisonGrey
AlisonGrey

Reputation: 507

Kafka does not start blank output

Im workign to install Kafa and Zookeeper.

I have already run the Zookeeper and it is currently running. I set up everything as in [https://dzone.com/articles/running-apache-kafka-on-windows-os]

when i finally run in my cmd,

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

there is no output, it just moves shows the next command line started. Kafka does not start with no errors Please help me out.

Upvotes: 4

Views: 2220

Answers (5)

sandeep kadu
sandeep kadu

Reputation: 1

C:\Windows\SysWOW64\wbem ==> add this it to environment variable then it works fine then it will not give blank output in cmd line it work for me also if anyone gets wmic not found ecternal internal cmd error them from optional features in windows 11 add wmic then it will works fine

Upvotes: 0

Aditya sharma R
Aditya sharma R

Reputation: 26

Kafka has seperate batch files for windows environment in /bin/windows directory. Use those to run on windows environment like this.

Use kafka-server-start.bat and kafka-server-stop.bat for kafka cluster.

You can find more details. https://github.com/apache/kafka/tree/trunk/bin/windows

Upvotes: 0

Rahul Pandey
Rahul Pandey

Reputation: 645

After lot of search this is the way I solved You have to add in User path in Environment Variable:

%SystemRoot%\System32\Wbem;%SystemRoot%\System32\;SystemRoot%

In User %PATH% Environment variable, and not in system %PATH% Environment variable. this question already replied on this page:
Kafka server not returning anything

Upvotes: 1

Lex Ryan
Lex Ryan

Reputation: 21

Finally I find someone with with the same issue I had! Zookeeper running, but kafka not doing anything at all except returning to the next line with no log, error, or anything. Dunno if the cause is the same, but the solution for me, oddly enough, was to download and open cygwin, and run the command exactly as you have it, except with flipping all the \s to /s and it worked.

Upvotes: 2

AlisonGrey
AlisonGrey

Reputation: 507

Solution that worked for me:

  1. Create the logs folder and mention it on the sever.properties, it will not create the folder automatically.

  2. go to your cmd and run kafka-server-start.bat D:\<pathofkafka>\config\server.properties

Thanks!

Upvotes: -1

Related Questions