简体   繁体   English

如何在 macOS 上安装 Cassandra?

[英]How to install Cassandra on macOS?

How to install cassandra on macOS Mojave?如何在 macOS Mojave 上安装 cassandra? Please help me with the steps needs to be followed?请帮我了解需要遵循的步骤? Getting error while running the below command:运行以下命令时出错:

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.

Follow steps mentioned in below URL to install Cassandra on mac按照以下 URL 中提到的步骤在 mac 上安装 Cassandra

https://docs.datastax.com/en/dse/5.1/dse-dev/datastax_enterprise/install/installMacdse.html https://docs.datastax.com/en/dse/5.1/dse-dev/datastax_enterprise/install/installMacdse.html

This error has more to do with your JRE version than the OS you are running.此错误与您的 JRE 版本有关,而不是与您正在运行的操作系统有关。 Setting ThreadPriorityPolicy=42 works in Java 8, but not any major version higher than that.设置ThreadPriorityPolicy=42在 Java 8 中有效,但没有任何高于此的主要版本。

There is not a current version of Cassandra which uses anything higher than Java 8, so I recommend you ensure that the latest patch of that version is installed.目前没有使用高于 Java 8 的任何 Cassandra 版本,因此我建议您确保安装该版本的最新补丁。

tl;dr; tl;博士;

  • Install Java 1.8安装 Java 1.8
  • Try running Cassandra again再次尝试运行 Cassandra

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM