darshan kamat
darshan kamat

Reputation: 424

Kafka server not returning anything

Zookeper is up and running in windows env.Now when i start Kafka server using

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

nothing is displayed

G:\Apache Kafka\kafka_2.11-0.11.0.0\kafka_2.11-0.11.0.0>.\bin\windows\kafka-serv
er-start.bat .\config\server.properties

G:\Apache Kafka\kafka_2.11-0.11.0.0\kafka_2.11-0.11.0.0>

I am following this article.

Upvotes: 2

Views: 5913

Answers (9)

Prakash
Prakash

Reputation: 57

In my case, I simply have to locate and add wbem location under "user variables" >> Path on Windows. It is usually present at C:\Windows\SysWOW64\wbem.

Screenshot attached.kafka_start

Upvotes: 0

D4S- D 4 Sol-ace
D4S- D 4 Sol-ace

Reputation: 1

I had a problem that I tried to start kafka server, there was no error but the logs were also not printed i.e. no response from server.

I added paths below in path name "path" both in user and system variable just didn't work for me.

C:\Windows\System32\wbem;%PATH%;

C:\Windows\SysWOW64\wbem

C:\Windows\System32\wbem

But doing as below worked perfectly for me:

%SystemRoot%\system32

Add this path in variable name "path" in system variable. And,

C:\Windows\SysWOW64\wbem

Add this to user variable's "path".

Thanks to one of the comment from Priyanka Thakur.

Upvotes: 0

Joma Tharish
Joma Tharish

Reputation: 1

This worked for me as well, basically we are adding the location of cmd terminal(you see it on the title of the terminal) to path variable

Upvotes: 0

Mukesh
Mukesh

Reputation: 1

For Widows Operating System 64 : Steps : Find the Wbem software path in your c drive / windows folder Exmple : C:\Windows\SysWOW64\

And set in the system environment path variable.

Upvotes: 0

user18925316
user18925316

Reputation: 1

yesi resolved this issue goton system variable settings and the edit path and click new after you paste this C:\Windows\System32 in you path then close cmd and again open new cmd and try that it's works for me

Upvotes: 0

Priyanka Thakur
Priyanka Thakur

Reputation: 1

I have added the %SystemRoot%\system32 variable to path. Then restart zookeeper and kafka-server. Then it worked.

Upvotes: 0

Chirag K
Chirag K

Reputation: 2434

Deleting the existing Kafka folder and un-tarring the downloaded Kafka{version}.tgz file worked for me.

Caveat: Although this is not an ideal solution but it works for individuals learning/exploring Kafka wanting to just get the things done.

Upvotes: 0

shivaji
shivaji

Reputation: 21

You have to add the path:

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

in User %PATH% Environment variable, and not in system %PATH% Environment variable.

Upvotes: 2

darshan kamat
darshan kamat

Reputation: 424

The issue resolved after including C:\Windows\System32 in PATH variable.

Upvotes: 4

Related Questions