如何在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.
按照下面URL中提到的步骤在Mac上安装Cassandra
https://docs.datastax.com/en/dse/5.1/dse-dev/datastax_enterprise/install/installMacdse.html
此错误与您的JRE版本有关,而不是所运行的操作系统。设置ThreadPriorityPolicy=42
在Java 8中有效,但没有比它高的任何主要版本。
没有当前版本的Cassandra使用比Java 8更高的版本,所以我建议您确保已安装该版本的最新补丁。
tl; dr;