如何在macOS上安装Cassandra?

问题描述 投票:0回答:2

如何在macOS Mojave上安装cassandra?请帮助我按照步骤进行操作?运行以下命令时出现错误:

cassandra -f

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 macos cassandra macos-mojave
2个回答
0
投票

0
投票

此错误与您的JRE版本有关,而不是所运行的操作系统。设置ThreadPriorityPolicy=42在Java 8中有效,但没有比它高的任何主要版本。

没有当前版本的Cassandra使用比Java 8更高的版本,所以我建议您确保已安装该版本的最新补丁。

tl; dr;

  • 安装Java 1.8
  • 尝试再次运行Cassandra
© www.soinside.com 2019 - 2024. All rights reserved.