I would like to start Cassandra with a very simple single-node cluster, but I can't do it.
I followed the steps described at
https://www.digitalocean.com/community/tutorials/how-to-install-cassandra-and-run-a-single-node-cluster-on-a-ubuntu-vps
Basically,
At the end, when I ran below as root user,
# sh ~/cassandra/bin/cassandra
The message below appeared.
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.
So, I ran
# 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.
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.
My environment is as below:
As undefined_variable commented, Java 8, instead of 9, worked just fine. Thanks everyone for trying to help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With