Cassandra 是否支持 Java 10? [英] Does Cassandra support Java 10?

查看:16
本文介绍了Cassandra 是否支持 Java 10?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正计划将我们的环境从 Java 8 迁移到 OpenJDK 10.在我的本地机器上执行此操作时,我发现 Cassandra 将不再为我启动,并出现以下错误:

We're planning on migrating our environment from Java 8 to OpenJDK 10. Doing this on my local machine, I've found that Cassandra will no longer start for me, giving the following error :

我在网上找不到任何可靠的信息表明它绝对不受支持.

I can't find any solid information online that says it is definitely not supported.

这篇文章表明他们没有支持Java 10,但并没有说得到证实,更多的是推断.另一位用户也对此发表了评论,称他们已设法让它在 Java 11 上运行.

This post from 4 months ago suggests that they do not support Java 10, but doesn't say it is confirmed, and is more inferred. There is also a comment on it from another user saying they have managed to get it running on Java 11.

关于 datastax 这张票的最终评论说我们已经更新了我们的 CI 矩阵包含 Java 10,除上述 OSGi 测试问题外,一切正常."我不知道要从中去掉什么,但似乎暗示它现在正在与 Java 10 一起使用,因为票证被标记为已解决.

The final comment on this ticket on datastax says "We've updated our CI matrix to include Java 10 and everything works except for the aforementioned OSGi testing issues." I'm not sure what to take away from that, but it seems to imply that it is working with Java 10 now, as the ticket is marked as resolved.

这张票,他们讨论了对 Java 11 的支持.有几个讨论甚至需要支持 Java 10 的评论,但他们并没有真正给出是否会支持的明确答案.

This ticket, they discuss support for Java 11. There are a few comments discussing the need to even support Java 10, but they don't really give a definitive answer on whether they will or not.

最后这篇博客讨论了一种让 Java 11 工作的方法卡桑德拉.但是我注意到这是使用 Cassandra 4.0.这个已经正式发布了吗?我在他们的 网站 上注意到他们说发布日期是 tbd 并且说当前的稳定版本是 3.11.3,并且在他们的兼容性页面上没有提及它.

Finally this blog discusses a way to get Java 11 working with cassandra. However I notice this is using Cassandra 4.0. Has this officially been released? I notice on their website they say the release date is tbd and says the current stable release is 3.11.3, and there is no mention of it on their compatibility page.

我目前通过 Datastax 在 Windows 上安装了 Cassandra,但我也尝试克隆当前的 git 存储库并从那里运行它,但我收到相同的错误消息(尽管在他们的 github 上他们似乎确实说它只经过测试使用 Java 8).

I currently installed Cassandra on windows via Datastax, but I have also tried cloning the current git repository and running it from there, but I get the same error message (although on their github they do seem to say it has only been tested with Java 8).

难道他们根本不支持 10 吗?此外,如果有人知道他们是否计划很快发布 4.0,并且这肯定会支持 11(我假设是 10?),那将是一个巨大的帮助.

Do they simply not support 10 then? Also if anyone knows if they plan to release 4.0 soon, and if that will definitely support 11 (and I assume 10 ?), that would be a massive help.

推荐答案

Cassandra 4.0 明确支持 Java 8 和 Java 11.事实上,他们甚至将配置文件拆分成这样:

Cassandra 4.0 has explicit support for both Java 8 and Java 11. In fact, they even split-up the configuration files as such:

$ pwd
/Users/aaron/local/apache-cassandra-4.0-SNAPSHOT/conf
$ ls -a jvm*
jvm-clients.options jvm11-clients.options   jvm8-clients.options
jvm-server.options  jvm11-server.options    jvm8-server.options

支持这些特定版本的原因有两个.首先,Java 8 几年来一直是 Cassandra 的事实上的标准.用户希望它在未来仍能在 Java 8 上运行.

The reason for support of these specific versions is two-fold. First of all, Java 8 has been the de-facto standard for Cassandra for a few years now. Users expect that it will still work on Java 8 in the future.

鉴于 Java 新的 6 个月发布周期,当 Apache Cassandra 4.0 发布时,Java 9 和 Java 10 将不再是当前"版本.此外,在构建期间运行的测试表明它们对使用的 Java 版本很挑剔.因此,决定在 4.0 中支持 Java 8 和 11,因为 Java 9 和 10 的工作优先级似乎较低.

Given the new 6 month release cycle of Java, Java 9 and Java 10 will no longer be "current" when Apache Cassandra 4.0 comes out. Plus, the tests which run during the build have shown to be picky about which version of Java they work with. Therefore, the decision was made to go support Java 8 and 11 for 4.0, as work on Java 9 and 10 seemed to be lower-priority.

这并不是说 Cassandra 4.0 不会运行在 Java 9 或 10 上.事实上,CASSANDRA-9608 甚至提交了一个应该覆盖它的补丁.但事实仍然是 Java 8 被包含在内,因为它在 Cassandra 用户群中长期使用.Java 11 将是 4.0 版本时的当前 JDK/JRE.如果您想确保您的集群运行良好,我会选择这两个之一.

That's not to say that Cassandra 4.0 won't run on Java 9 or 10. In fact, CASSANDRA-9608 even has a patch submitted which should cover it. But the fact remains that Java 8 is included due to its longstanding use in the Cassandra user base. Java 11 will be the current JDK/JRE at the time 4.0 releases. If you want to be sure that your cluster will run well, I'd pick one of those two.

但在 4.0 之前,Java 8 的最新补丁确实是唯一的选择.

But until 4.0, the most recent patch of Java 8 is really the only option.

这篇关于Cassandra 是否支持 Java 10?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆