无法启动Cassandra(CentOS7上的单节点群集) [英] Can't start Cassandra (Single-Node Cluster on CentOS7)

查看:968
本文介绍了无法启动Cassandra(CentOS7上的单节点群集)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用一个非常简单的单节点集群来启动Cassandra, 但我做不到.

I would like to start Cassandra with a very simple single-node cluster, but I can't do it.

我遵循了

https://www.digitalocean.com/community/tutorials/how-to-install-cassandra-and-run-a-single-node-cluster-on-a-ubuntu-vps a>

基本上

  1. 在VirtualBox上构建新的CentOS 7虚拟机.
  2. 安装了JDK,将其放在/usr/local/下,并创建了路径.
  3. 安装Apache Cassandra,将其放在/root/下,为lib和日志制作目录,并为Cassandra授予写权限.

最后,当我以root用户身份跑到下面时,

At the end, when I ran below as root user,

# sh ~/cassandra/bin/cassandra

出现以下消息.

Running Cassandra as root user or group is not recommended - please start Cassandra using a different system user.
If you really want to force running Cassandra as root, use -R command line option.

所以,我跑了

# sh ~/cassandra/bin/cassandra -R

然后,我在下面收到了消息.

Then, I got the message below.

# [0.000s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/root/cassandra/bin/../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.

问题似乎与JVM有关, 但是我对它的原因和解决方案一无所知.

It seems the issue is related to JVM, but I have no clue regarding its cause and solution.

如果您有解决此问题的想法,请告诉我.

Please let me know if you have ideas of how to solve this issue.

我的环境如下:

  • Windows 10
  • VirtualBox 5.1.28
  • CentOS-7-x86_64-Minimal-1611
  • jdk-9.0.1
  • apache-cassandra-3.11.1

推荐答案

正如undefined_variable所注释的那样,Java 8(而不是9)工作得很好.谢谢大家的帮助.

As undefined_variable commented, Java 8, instead of 9, worked just fine. Thanks everyone for trying to help.

这篇关于无法启动Cassandra(CentOS7上的单节点群集)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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