Cassandra 不在 Java 10 上启动 [英] Cassandra does not start on Java 10

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

问题描述

我有一个全新的 Windows 10 Home 安装,全新安装了 JDK 10.0.1(这是我去 JDK 下载站点时 Oracle 推荐的.)我刚刚下载了 Cassandra 3.11.2,un-tar 了它,并将 bin 目录放在我的类路径中.

I have a brand new Windows 10 Home installation, with a brand-new installation of JDK 10.0.1 (which is what Oracle recommended when I went to the JDK download site.) I just now downloaded Cassandra 3.11.2, un-tar'd it, and put the bin directory on my classpath.

当我尝试使用 cassandra -f 命令启动 Cassandra 时,出现此错误:

When I attempt to start Cassandra using the cassandra -f command, I get this error:

PS C:javatools> cassandra -f
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
WARNING! Automatic page file configuration detected.
 It is recommended that you disable swap when running Cassandra
 for performance and stability reasons.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
Failed 64-bit check. Re-running to get version from 32-bit
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
Cassandra 3.0 and later require Java 8u40 or later.

Java 10 显然是Java 8 rel 40 或更高版本".我确认我实际上运行的是我认为的 Java 版本:

Java 10 is clearly "Java 8 rel 40 or later". I verified that I was, in fact, running the version of Java I thought I was:

PS C:javatools> java -version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

我怎样才能让 Cassandra 认识到我确实拥有Java 8u40 或更高版本"?

How can I get Cassandra to recognize that I do, in fact, have "Java 8u40 or later"?

推荐答案

Cassandra 不支持任何比 Java 8 更新的 Java 版本.

Cassandra does not support any Java release newer than Java 8.

参考资料如下:

此外,尽管文档确实表明它是正在进行的工作",但它确实在 入门 页面:

Furthermore, even though the documentation does indicate it's a "work in progress", it does indicate the following on the Getting Started page:

先决条件

Java 8 的最新版本,要么是 Oracle Java 标准版8 或 OpenJDK 8. 验证您是否拥有正确的 java 版本已安装,输入 java -version.

The latest version of Java 8, either the Oracle Java Standard Edition 8 or OpenJDK 8. To verify that you have the correct version of java installed, type java -version.

虽然它没有明确说明不支持 Java 9 及更高版本",但这显然应该是从该指标中推断出来的.

While it doesn't explicitly say "Java 9 and newer are not supported", this is apparently supposed to be inferred from this indicator.

最后,误导性错误消息似乎是一个不会修复的项目.

Finally, the misleading error message appears to be a wontfix item.

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

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