Cannot start Cassandra (Single-Node Cluster on CentOS7)

I would like to start Cassandra with a very simple single node cluster, but I cannot do this.

I followed the steps described in

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

Basically,

  • Built a new CentOS 7 virtual machine on VirtualBox.
  • Once the JDK is installed, place it under / usr / local / and create patches.
  • Installed Apache Cassandra, placed it under / root /, made directries for the lib library and journal, and gave Cassandra write permissions.

In the end, when I ran below as a root user,

# sh ~/cassandra/bin/cassandra 

A message appeared below.

 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 received 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. 

The problem seems to be related to the JVM, but I have no idea about its cause and solution.

Please let me know if you have ideas on how to solve this problem.

My environment is as follows:

  • Windows 10
  • VirtualBox 5.1.28
  • CentOS-7-x86_64-Minimum-1611
  • JDK-9.0.1
  • Apache Kassandra 3.11.1
+3
source share
2 answers

As undefined_variable noted, Java 8 worked fine instead of 9. Thank you all for your help.

+4
source

This issue is already reported at https://issues.apache.org/jira/browse/CASSANDRA-13107 .

To solve this problem, you can simply comment on this parameter in the jvm.options file.

+3
source

Source: https://habr.com/ru/post/1272887/


All Articles