I'm installing a new cassandra database server and want to run the same successfully. How to fix the exited state issue?
This is for a new Ubuntu server.
Active: active (exited)
I want it to be active and running normally but, it is in exited state.
I was having the same. This is what i did to solve mine.
Java 11 support seems to be experimental indeed. After I installed Java and Cassandra I got it running.
For java, I used
sudo apt install openjdk-8-jre
sudo apt install openjdk-8-jdk
and set
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
in /etc/environment. Please note, I have also rebooted the station, once after Java installation and JAVA_HOME setting, and another time after Cassandra installation.
My Ubuntu is 18.04.01,
the command "java -version" prints
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
and
the command "cqlsh" prints
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 3.11.6 | CQL spec 3.4.4 | Native protocol v4]
Use HELP for help.
cqlsh>
and the terminal presents the cql shell.
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