Cassandra 和 Java 9 - ThreadPriorityPolicy=42 超出允许范围 [英] Cassandra and Java 9 - ThreadPriorityPolicy=42 is outside the allowed range

查看:21
本文介绍了Cassandra 和 Java 9 - ThreadPriorityPolicy=42 超出允许范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我从官方网站安装了 JDK 9 和 Apache Cassandra.但是现在当我在前台启动 cassandra 时,我收到以下消息:

Very recently I installed JDK 9 and Apache Cassandra from the official site. But now when I start cassandra in foreground, I get this message:

apache-cassandra-3.11.1/bin$ ./cassandra -f

[0.000s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/home/mmatak/monero/apache-cassandra-3.11.1/logs/gc.log instead.
intx ThreadPriorityPolicy=42 is outside the allowed range [ 0 ... 1 ]
Improperly specified VM option 'ThreadPriorityPolicy=42'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

到目前为止,我没有找到任何解决方案.Java 9 和 Cassandra 是否有可能还不兼容?这里也提到了这个问题 - #CASSANDRA-13107

So far I didn't find any solution for this. Is it maybe possible that Java 9 and Cassandra are not yet compatible? Here is that problem mentioned as well - #CASSANDRA-13107

但我不确定如何移除标志"?在哪里可以覆盖或删除此标志?

But I am not sure how to just "remove the flag"? Where is it possible to override or remove this flag?

推荐答案

我遇到了完全相同的问题:无法启动 Cassandra(CentOS7 上的单节点集群))

I had exactly the same issue: Can't start Cassandra (Single-Node Cluster on CentOS7)

如果您可以选择,使用 Java 8 而不是 9 是解决问题的最简单方法.

If it is an option for you, using Java 8, instead of 9, is the simplest way to solve the issue.

这篇关于Cassandra 和 Java 9 - ThreadPriorityPolicy=42 超出允许范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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