APK
APK

Reputation: 181

Not able to run Cassandra with Openj9 JVM

I installed cassandra on mac using this command brew install cassandra. I ran this command (cassandra -f) to start the DB but getting the following exception.

Caused by: java.lang.NumberFormatException: For input string: "openj9-0"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65).

Java Version: enter image description here

In this link https://youtrack.jetbrains.com/issue/UP-10379 it is mentioned that database doesn't support OpenJ9. The fix is planned for Cassandra 4.0 which hasn't been released yet.

I installed the latest version of cassandra which is 4.0.3, still I am facing issue.

Any solution or alternative??

If there is no solution then How can I switch from openJ9 VM to Hotspot JVM (which is compatible with cassandra).

Upvotes: 2

Views: 257

Answers (1)

Erick Ramirez
Erick Ramirez

Reputation: 16303

The Eclipse Openj9 JVM is still not supported even in Cassandra 4.0 (CASSANDRA-14883).

I would suggest you use either OpenJDK 8 or 11 as I've documented in Installing Cassandra. (Note to readers: Java 11 only works with Cassandra 4. Earlier versions of Cassandra only supports Java 8.)

The Apache Cassandra test infrastructure is setup with Hotspot VM and we are currently focused on testing/certifying Java 17 LTS. For the record, I'm not saying that OpenJ9 won't be supported -- just that there is probably limited motivation to do so given our limited resources. Cheers!

Upvotes: 1

Related Questions