-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: "The input line is too long" on Windows #61
Comments
Created a kafka issues about the same problem Is there a way to speed up the addition of the fix to Kafka ? |
@fmeili .. Thanks Frank!!! It works!!! |
Kafka 2.6.0 problem still exist |
Confirmed @fmeili solution does indeed work on Windows 10 and Kafka 2.7.0 |
I'm having the same issue with kafka 2.13-2.8.0 |
same |
Hit this same issue. It would be great to get this fixed. |
Thanks, This suggestion is still working even in 2024 |
It's funny... six years and still not fixed although it's such a small and simple change. Maybe not many are using Kafka under Windows? - but even under Linux it would be an improvement. Let the JVM itself create the classpath at runtime instead on relying on a shell with their own specific restrictions - additionally the behavior on Windows and Linux would be exact the same if the JVM would do it. |
I was testing Kafka on Windows and found a limitation / problem in how the classpath is constructed with the batch file "kafka-run-class.bat" (which is used when starting zookeeper/kafka). In this batch file the classpath is constructed jar by jar with the absolute path for each jar. Because of the huge number of jar files, the Windows cmd.exe environment limit of 8191 character is reached very fast under real life installations (see: https://support.microsoft.com/de-de/help/830473/command-prompt-cmd-exe-command-line-string-limitation).
If this batch-file would use the java classpath syntax with wildcards, the problem should be solvable.
e.g changing the following lines in the "kafka-run-class.bat" from
to
would solve the problem.
Thanks,
Frank
The text was updated successfully, but these errors were encountered: