Hi,

We had a few problems getting started using windows. Maybe some info could be 
added to the docs.

The first issue we had was that the setup did not seem to like the default 
distribution directory e.g. kafka_2.13-4.0.0 so we renamed that to kafka.
"The input line is too long.
The syntax of the command is incorrect."
https://stackoverflow.com/questions/48834927/the-input-line-is-too-long-when-starting-kafka

I put the distro in c:\Users\xxxxxxxx\apps\kafka and it worked with the user 
name being 8 chars.

Rename the distro so the setup scripts will run on Windows (used dos> to avoid 
formatting of > in the email client)

dos> rename kafka_2.13-4.0.0 kafka

Change into the directory of your extracted or renamed distribution e.g.

dos> cd kafka

Once you change directory into the kafka directory the following commands 
should work at the "Command Prompt" (Powershell would be different) that mirror 
the Unix type commands in the Getting started documentation. See 
https://kafka.apache.org/documentation/#quickstart

Generate a Cluster UUID

dos> FOR /f "usebackq tokens=* delims=" %A in (`.\bin\windows\kafka-storage.bat 
random-uuid`) do set "KAFKA_CLUSTER_ID=%A"

Format Log Directories

dos> .\bin\windows\kafka-storage.bat format --standalone -t %KAFKA_CLUSTER_ID% 
-c .\config\server.properties

Start the Kafka Server

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

Stop the kafka Server

dos> .\bin\windows\kafka-server-stop.bat .\config\server.properties

Hopefully there is someone that has access to a windows machine that can check 
this out and maybe add it to the docs.

Thanks,
Eric

Eric Richardson (ekrich on github)
Software Arch & Eng Dept - A1/3832
231.944.6949 (m) 310.336.4172 (w)
eric.k.richard...@aero.org<mailto:eric.k.richard...@aero.org>

Reply via email to