Code Monkey home page Code Monkey logo

Comments (12)

nosan avatar nosan commented on July 18, 2024

Hi @hsn10
Could you please share your cassandra.bat?

from embedded-cassandra.

hsn10 avatar hsn10 commented on July 18, 2024

cassandra.txt

from embedded-cassandra.

hsn10 avatar hsn10 commented on July 18, 2024

Just make name of file we are going to execute configurable and make configurable its arguments as well

from embedded-cassandra.

nosan avatar nosan commented on July 18, 2024

@hsn10 Your issue has been fixed, you can use4.0.3-SNAPSHOT for now, 4.0.3 will be released a bit later.

from embedded-cassandra.

hsn10 avatar hsn10 commented on July 18, 2024

This error input line too long is from your library?

[info] ***** CASSANDRA STARTING *****
14:01:28.188 [cassandra-0:bin/cassandra.bat:ERR] ERROR com.github.nosan.embedded.cassandra.Cassandra - The input line is too long.
14:01:28.196 [cassandra-0:bin/cassandra.bat:ERR] ERROR com.github.nosan.embedded.cassandra.Cassandra - The syntax of the command is incorrect.
[info] ***** !!! cassandra start failed *****     

from embedded-cassandra.

nosan avatar nosan commented on July 18, 2024

No, it is from script.

from embedded-cassandra.

hsn10 avatar hsn10 commented on July 18, 2024

You creating too long directory names. It works when renamed to something shorter like C:\users\hsn\local settings\temp\123

from embedded-cassandra.

nosan avatar nosan commented on July 18, 2024

Temporary directory is being used by default, you can specify your own working directory to be used.

from embedded-cassandra.

nosan avatar nosan commented on July 18, 2024

https://nosan.github.io/embedded-cassandra/4.0.2/#working-directory

from embedded-cassandra.

hsn10 avatar hsn10 commented on July 18, 2024

Temporary directory is fine, other software is using that too but you are creating too long last component of directory name and it will fail to fit windows path limit.

from embedded-cassandra.

nosan avatar nosan commented on July 18, 2024

\AppData\Local\Temp\apache-cassandra-4.0-rc1-5664624711481308455\bin\cassandra.ps1 is 82 characters long.

Windows path limit is 260. I don't see any issue with the last component, if it does not fit you, there is a way to override it.

from embedded-cassandra.

hsn10 avatar hsn10 commented on July 18, 2024

There is 8191 characters command line limit
https://docs.microsoft.com/cs-CZ/troubleshoot/windows-client/shell-experience/command-line-string-limitation

Cassandra.bat adds all JAR files to classpath making it too long and hitting that limit. That (82 characters + user home directory size) will be repeated many times.

from embedded-cassandra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.