apache-kafka

unable to start kafka [Path too long]


I get error like path is too long. but i doon't know why. But zookeeper is started. Do you have some propositions for me ?

MINGW64 /c/Program Files/kafka_2.12-3.8.1/bin/windows
$ kafka-server-start.bat ..\..\config\server.properties
La ligne entrée est trop longue.
La syntaxe de la commande n’est pas correcte.


$ zkServer.sh start
ZooKeeper JMX enabled by default
Using config: C:\Program Files\apache-zookeeper-3.9.3-bin\conf\zoo.cfg
Starting zookeeper ... already running as process 1826.

I tried these solutions:

./kafka-server-start.bat ../../config/server.properties

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

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


Solution

  • Oh windows and the long paths...this never happens in Linux ; )

    Two options:

    1. Move and rename the Kafka directory to something like C:\Kafka (something with a shorter path will work)

    2. Launch the kafka broker from a terminal inside the current kafka directory, calling it like:

    bin/kafka-server-start.bat config/server.properties