Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does latest Cassandra support openJDK?

Tags:

cassandra

On the GitHub Readme it says Tested on >=1.7 (OpenJSK and Sun). However, when I looked at CassandraDaemon.java, the warning that asks us to upgrade to Oracle Java still exists.

Can someone comment on this ?

like image 291
user3258466 Avatar asked Mar 21 '23 17:03

user3258466


2 Answers

I am sure DataStax does testing against OpenJDK, but it is a recommendation to use Sun JDK. There are several people on Community who use OpenJDK without problems but there are also some who do have a lot of problems with openJDK. If you read a few lines later where you started:

https://github.com/apache/cassandra/blame/trunk/src/java/org/apache/cassandra/service/CassandraDaemon.java#L119

You see one example that it warns about what may not work as intended if non-Sun-JDK is used. Those usually affect performance and GC. So, use OpenJDK at your own risk. Also latest version required Java 7.

like image 68
Arya Avatar answered Mar 23 '23 08:03

Arya


It is better to use Oracle JDK. We encountered issues because the version was not named in an acceptable format for an OpenJDK implementation i.e. it used icedtea in version and the script could not handle this scenario.

like image 27
Sumod Avatar answered Mar 23 '23 06:03

Sumod