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

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

问题描述

我有一个全新的Windows 10 Home安装,并且有一个JDK 10.0.1的全新安装(这是Oracle在访问JDK下载站点时所建议的。)我刚刚下载了Cassandra 3.11.2,联合国-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 命令,出现此错误:

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版本高于Java 8。

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

参考如下:

  • declined bug report against Java 9: CASSANDRA-9608
  • declined bug report against Java 10: CASSANDRA-14446

此外,即使文档确实表明它是进行中的工作,它也会在入门页面:

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


先决条件

Prerequisites

Java 8的最新版本,即Oracle Java Standard Edition
8或OpenJDK8。要验证您具有正确的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天全站免登陆