0

Trying to start zookeeper service on command prompt, but have no response.

when I enter bin/zookeeper-server-start.sh config/zookeeper.properties some windows opens, after ~1min automatically closes and no other response or error is shown. Zookeeper is not running. enter image description here

I followed instruction on kafka.apache.org. Tried to use previous version kafka-3.3.2, but nothing works.

Sanushi Salgado
  • 1,195
  • 1
  • 11
  • 18
elena
  • 5
  • 2

1 Answers1

0

You appear to have Git Bash installed, which doesn't have Java on its PATH by default , needed to run Zookeeper or Kafka.

Use \bin\windows\zookeeper-server-start script instead, as the Kafka documentation mentions for Windows users (at least it used to).

Or start with Git bash / WSL2 terminal rather than command prompt. Then you'll be able to see the error message better.

Related How to install Kafka on Windows?

Also, latest Kafka doesn't require Zookeeper, but you'd probably get the same issue running Kafka in Kraft mode

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245