无法使用OpenJ9 JVM运行Cassandra
我使用此命令 brew install cassandra
在 mac 上安装了 cassandra。 我运行此命令(cassandra -f
)来启动数据库,但出现以下异常。
Caused by: java.lang.NumberFormatException: For input string: "openj9-0"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65).
在此链接中https://youtrack.jetbrains.com/issue/UP-10379 提到数据库不支持 OpenJ9。该修复计划针对尚未发布的 Cassandra 4.0。
我安装了最新版本的 cassandra 4.0.3,但仍然遇到问题。
有什么解决方案或替代方案吗?
如果没有解决方案,那么如何从 openJ9 VM 切换到 Hotspot JVM(与 cassandra 兼容)。
I installed cassandra on mac using this command brew install cassandra
.
I ran this command (cassandra -f
) to start the DB but getting the following exception.
Caused by: java.lang.NumberFormatException: For input string: "openj9-0"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65).
In this link https://youtrack.jetbrains.com/issue/UP-10379 it is mentioned that database doesn't support OpenJ9. The fix is planned for Cassandra 4.0 which hasn't been released yet.
I installed the latest version of cassandra which is 4.0.3, still I am facing issue.
Any solution or alternative??
If there is no solution then How can I switch from openJ9 VM to Hotspot JVM (which is compatible with cassandra).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
即使在 Cassandra 4.0 中,仍然不支持 Eclipse Openj9 JVM (CASSANDRA-14883 )。
我建议您使用 OpenJDK 8 或 11,正如我在 安装 Cassandra。 (读者请注意:Java 11 仅适用于 Cassandra 4。早期版本的 Cassandra 仅支持 Java 8。)
Apache Cassandra 测试基础架构是使用 Hotspot VM 设置的,我们目前专注于测试/认证 Java 17 LTS。郑重声明,我并不是说 OpenJ9 不会受到支持,只是考虑到我们的资源有限,这样做的动力可能有限。干杯!
The Eclipse Openj9 JVM is still not supported even in Cassandra 4.0 (CASSANDRA-14883).
I would suggest you use either OpenJDK 8 or 11 as I've documented in Installing Cassandra. (Note to readers: Java 11 only works with Cassandra 4. Earlier versions of Cassandra only supports Java 8.)
The Apache Cassandra test infrastructure is setup with Hotspot VM and we are currently focused on testing/certifying Java 17 LTS. For the record, I'm not saying that OpenJ9 won't be supported -- just that there is probably limited motivation to do so given our limited resources. Cheers!