You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by Ukpa Uchechi <uk...@gmail.com> on 2025/01/27 08:39:22 UTC
[DISCUSS] Issue with Windows Batch File: "The input line is too long"
Hi all,
I’m working on adding Windows support for the quickstart section of the
Apache Kafka documentation. While testing the Windows batch file (
.\bin\windows\kafka-storage.bat), I encountered an error:
(call :concat "C:\Users\HP\Downloads\kafka_2.13-3.9.0\libs\scala-library-2.13.14.jar")
The input line is too long. The syntax of the command is incorrect.
Environment:
- OS: Windows 11
- Java: 23.0.1 (Java(TM) SE Runtime Environment, build 23.0.1+11-39)
- Kafka Version: 3.9.0 (Scala 2.13)
It seems that the issue might be caused by a Windows command length
limitation. Unfortunately, I’m not familiar with batch scripting, so I’m
unsure how to fix this.
Questions:
1. Has anyone else experienced this before?
2. Is there any guidance on how this could be resolved?
I’d appreciate any help or suggestions on how to proceed. If you need more
details, please let me know.
Thank you,
Uchechi.
Re: [DISCUSS] Issue with Windows Batch File: "The input line is too long"
Posted by Ukpa Uchechi <uk...@gmail.com>.
Thanks for the insight!
I’ll test using a shorter path (e.g., D:\kafka\) to see if it resolves the
issue.
On Mon, Jan 27, 2025 at 2:25 PM Subra I <ia...@gmail.com> wrote:
> I thought this issue has been there for a long time on Windows. I see a
> similar issue too while starting kafka on Windows if the path is too long.
>
> In my setup I have short path names. Ex: D:\kafka\.
>
> If I have longer paths like (D:\myuser\project1\kafka), it gives me an
> error similar to what you mentioned.
>
> On Mon, Jan 27, 2025 at 2:09 PM Ukpa Uchechi <uk...@gmail.com>
> wrote:
>
> > Hi all,
> >
> > I’m working on adding Windows support for the quickstart section of the
> > Apache Kafka documentation. While testing the Windows batch file (
> > .\bin\windows\kafka-storage.bat), I encountered an error:
> >
> > (call :concat
> > "C:\Users\HP\Downloads\kafka_2.13-3.9.0\libs\scala-library-2.13.14.jar")
> > The input line is too long. The syntax of the command is incorrect.
> >
> > Environment:
> >
> > - OS: Windows 11
> > - Java: 23.0.1 (Java(TM) SE Runtime Environment, build 23.0.1+11-39)
> > - Kafka Version: 3.9.0 (Scala 2.13)
> >
> > It seems that the issue might be caused by a Windows command length
> > limitation. Unfortunately, I’m not familiar with batch scripting, so I’m
> > unsure how to fix this.
> > Questions:
> >
> > 1. Has anyone else experienced this before?
> > 2. Is there any guidance on how this could be resolved?
> >
> > I’d appreciate any help or suggestions on how to proceed. If you need
> more
> > details, please let me know.
> >
> > Thank you,
> > Uchechi.
> >
>
Re: [DISCUSS] Issue with Windows Batch File: "The input line is too long"
Posted by Subra I <ia...@gmail.com>.
I thought this issue has been there for a long time on Windows. I see a
similar issue too while starting kafka on Windows if the path is too long.
In my setup I have short path names. Ex: D:\kafka\.
If I have longer paths like (D:\myuser\project1\kafka), it gives me an
error similar to what you mentioned.
On Mon, Jan 27, 2025 at 2:09 PM Ukpa Uchechi <uk...@gmail.com> wrote:
> Hi all,
>
> I’m working on adding Windows support for the quickstart section of the
> Apache Kafka documentation. While testing the Windows batch file (
> .\bin\windows\kafka-storage.bat), I encountered an error:
>
> (call :concat
> "C:\Users\HP\Downloads\kafka_2.13-3.9.0\libs\scala-library-2.13.14.jar")
> The input line is too long. The syntax of the command is incorrect.
>
> Environment:
>
> - OS: Windows 11
> - Java: 23.0.1 (Java(TM) SE Runtime Environment, build 23.0.1+11-39)
> - Kafka Version: 3.9.0 (Scala 2.13)
>
> It seems that the issue might be caused by a Windows command length
> limitation. Unfortunately, I’m not familiar with batch scripting, so I’m
> unsure how to fix this.
> Questions:
>
> 1. Has anyone else experienced this before?
> 2. Is there any guidance on how this could be resolved?
>
> I’d appreciate any help or suggestions on how to proceed. If you need more
> details, please let me know.
>
> Thank you,
> Uchechi.
>