Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

cassandra - Why can't I run CassandraDB on Windows 10 with the latest Java installed?

When I try to start up Cassandra DB under windows 10, It complains about the Java version:

Cassandra 3.0 and later require Java 8u40 or later.

I believe I have the latest Java installed:

java --version
java 13.0.2 2020-01-14
Java(TM) SE Runtime Environment (build 13.0.2+8)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)

I've installed Apache Cassandra 3.11.9 (the open source version not the Datastax version).

Why doesn't Cassandra recognize this version of Java? Do I need to install a different version of Java to get this working?

question from:https://stackoverflow.com/questions/65871958/why-cant-i-run-cassandradb-on-windows-10-with-the-latest-java-installed

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Yes, you need to install Java 8 to run Cassandra 3.11 - it will not work with Java 13 (yes, I understand that error message isn't clear). Support for Java > 8 was added only to Cassandra 4.0, that is currently in beta. Also, on Windows it would be easier to use Docker to run Cassandra - there are different difficulties with running Cassandra on Windows.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...