我想用一个非常简单的单节点群集启动Cassandra,但是我做不到。
我按照在
https://www.digitalocean.com/community/tutorials/how-to-install-cassandra- and-run-a-single-node-cluster-on-a-ubuntu- vps
基本上,
最后,当我以root用户身份进入下方时,
# 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
然后,我收到以下消息。
# [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有关,但我不了解其原因和解决方案。
如果您有解决此问题的想法,请告诉我。
我的环境如下:
正如undefined_variable所评论的那样,Java 8而不是9可以正常工作。感谢大家的帮助。