无法启动 Cassandra(CentOS7 上的单节点集群) [英] Can't start Cassandra (Single-Node Cluster on CentOS7)
本文介绍了无法启动 Cassandra(CentOS7 上的单节点集群)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用一个非常简单的单节点集群启动 Cassandra,但我做不到.
I would like to start Cassandra with a very simple single-node cluster, but I can't do it.
我按照
基本上,
- 在 VirtualBox 上构建了一个全新的 CentOS 7 虚拟机.
- 安装JDK,放在/usr/local/下,并创建路径.
- 安装 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屋!
查看全文