yahoo / CMAK

CMAK is a tool for managing Apache Kafka clusters
Apache License 2.0
11.81k stars 2.5k forks source link

kafka-manager.bat "The input line is too long." #572

Open PauloTemenos opened 5 years ago

PauloTemenos commented 5 years ago

The Windows batch file to start-up Kafka Manager is not working (Windows 10).

I git cloneed the project, Then sbt clean dist, Then:

C:\Users\{user}\Desktop\kafka-manager-1.3.3.21\bin>kafka-manager.bat
The input line is too long.
The syntax of the command is incorrect.

Then tried executing from the root folder:

C:\Users\{user}\Desktop\kafka-manager-1.3.3.21\bin>cd ..

C:\Users\{user}\Desktop\kafka-manager-1.3.3.21>bin\kafka-manager.bat -Dhttp.port=9092
The input line is too long.
The syntax of the command is incorrect.

I removed the echo off and the last line I saw printed was line 81, hinting me the line with the problem is line 83, which is indeed ginormous.

PauloTemenos commented 5 years ago

I've noticed this in the command line (without the echo off), which looks like an invalid path (3 consecutive "\")?

C:\Users\{user}\Desktop\kafka-manager-1.3.3.21\bin>if "" == "" (
set "APP_HOME=C:\Users\{user}\Desktop\kafka-manager-1.3.3.21\bin\\\.."
 rem Also set the old env name for backwards compatibility
 set "KAFKA_MANAGER_HOME=C:\Users\{user}\Desktop\kafka-manager-1.3.3.21\bin\\\.."
)  else (set "APP_HOME=" )

C:\Users\{user}\Desktop\kafka-manager-1.3.3.21\bin>set "APP_LIB_DIR=C:\Users\{user}\Desktop\kafka-manager-1.3.3.21\bin\\\..\lib\"
wubli commented 5 years ago

The input line is too long.

Workaround is to have shorter path than C:\Users\{user}\Desktop\kafka-manager-1.3.3.21\bin