Dieter De Paepe created KAFKA-7998:
--------------------------------------
Summary: Windows Quickstart script fails
Key: KAFKA-7998
URL: https://issues.apache.org/jira/browse/KAFKA-7998
Project: Kafka
Issue Type: Bug
Affects Versions: 2.1.0
Reporter: Dieter De Paepe
Following the [Quickstart |http://kafka.apache.org/quickstart]guide on windows,
I received an error in the script to start Zookeeper:
{noformat}
The input line is too long.
The syntax of the command is incorrect.{noformat}
The cause is in the long CLASSPATH being constructed, resulting in a very long
string:
{noformat}
for %%i in ("%BASE_DIR%\libs\*") do (
call :concat "%%i"
)
...
:concat
IF not defined CLASSPATH (
set CLASSPATH="%~1"
) ELSE (
set CLASSPATH=%CLASSPATH%;"%~1"
){noformat}
A simple fix is to change the "kafka-run-class.bat" as follows (for all similar
loops):
{noformat}for %%i in ("%BASE_DIR%\libs\*") do (
call :concat "%%i"
){noformat}
should become
{noformat}call :concat "%BASE_DIR%\libs\*"{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)