Brahim SLIMANI
Brahim SLIMANI

Reputation: 390

Unable to start cassandra service on Ubuntu?

I got this output error :

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

Upvotes: 1

Views: 285

Answers (1)

Brahim SLIMANI
Brahim SLIMANI

Reputation: 390

I solved this problem by switching to java version 8. When using java 9, 10 or other versions the only fix for now is use the openjdk-8-jre package.

Upvotes: 1

Related Questions