Code Monkey home page Code Monkey logo

Comments (7)

dedece35 avatar dedece35 commented on July 18, 2024 1

oki. thank you for your answers. I decided to have a 4.0.3 version on my unit tests (I can't have a jdk 1.8 because actually my unit tests run on a docker instance configured with a jdk8 and I need this jdk11 to chek all others unit test).

thank you again.

from embedded-cassandra.

dedece35 avatar dedece35 commented on July 18, 2024

I can correct the problem and create a PR if you want.

from embedded-cassandra.

nosan avatar nosan commented on July 18, 2024

Apache Cassandra is lower than 4.x.x does not support JDK 11.

from embedded-cassandra.

nosan avatar nosan commented on July 18, 2024

if you want you can modify the working directory with your own cassandra.sh file

from embedded-cassandra.

dedece35 avatar dedece35 commented on July 18, 2024

hello @nosan ,

thank you for answer.
To verify it I tried cassandra 2.1.21 on my localhost. Here are my tests.

First launch
I launches a cassandra instance on localhost with a "openjdk-11.0.2", then first first error (like on JDK 1.8) :
intx ThreadPriorityPolicy=42 is outside the allowed range [ 0 ... 1 ] Improperly specified VM option 'ThreadPriorityPolicy=42' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
OK. I made the correction on JVM parameters : I modified option "-XX:ThreadPriorityPolicy=42" to "-XX:ThreadPriorityPolicy=1".
Then I relaunched cassandra instance and got next error :
Unrecognized VM option 'UseParNewGC' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

Second launch
Then I deleted this option "UseParNewGC" (because it was deprecated since JDK 9 and removed since JDK 10)
And finally, I have a cassandra instance running.

For you, what is wrong with my tests ?
Maybe for a one embedded cassandra instance, it is enough, isn't it ?

thank you again.

from embedded-cassandra.

nosan avatar nosan commented on July 18, 2024

The problem is that Cassandra 2.x.x itself does not support jdk11. Of course, you can tune it with jvm options and looks like it works but unfortunately there is no guarantee that it will work as expected.

from embedded-cassandra.

nosan avatar nosan commented on July 18, 2024

You can install jdk8 and set JAVA_HOME (path to jdk8 folder) env variable.

So, you will be able to continue using jdk11 but Cassandra will use jdk8

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.