Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cassandra 3.0 and later require Java 8u40 or later

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.

like image 775
Nandakishore Avatar asked Dec 21 '15 22:12

Nandakishore


People also ask

Does Cassandra need Java?

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.

What version of Java does Cassandra use?

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.

Does Cassandra run on Java?

Java 8 and Java 11 may be used to build and run Apache Cassandra 4.0.


1 Answers

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

like image 174
Kentang Avatar answered Sep 28 '22 17:09

Kentang