I'm trying to run cassandra 3.0 in datastax. But i'm getting an error saying Cassandra 3.0 and later require Java 8u40 or later.
I have installed java and moved the jdk1.8.0_65 to /usr/local/java
and set JAVA_HOME to /usr/local/java/jdk1.8.0_65
.
But I'm still facing the following error:
Cassandra 3.0 and later require Java 8u40 or later.
Apache Cassandra requires Java 8 to run on a Windows system. Additionally, the Cassandra command-line shell (cqlsh) is dependent on Python 2.7 to work correctly. To be able to install Cassandra on Windows, first you need to: Download and Install Java 8 and set environment variables.
Compatibility. The driver is compatible with Apache Cassandra® 2.1 and higher, DataStax Enterprise 4.7 and higher, and DataStax Astra. It requires Java 8 or higher. Disclaimer: Some DataStax/DataStax Enterprise products might partially work on big-endian systems, but DataStax does not officially support these systems.
Java 8 and Java 11 may be used to build and run Apache Cassandra 4.0.
I also have same problem. My solution is editing file apache-cassandra-3.7/bin/cassandra. Below line that contain "#!/bin/sh" (2nd line) you can put line like below
JAVA_HOME="/path/of/your/jdk"
example :
JAVA_HOME="/opt/jdk1.8.0_101"
Hope this solution can help you and other people
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With