Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix 'Active: active (exited)' issue in Cassandra server?

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.

like image 201
Gokul Chidambaram Avatar asked Oct 20 '25 09:10

Gokul Chidambaram


2 Answers

I was having the same. This is what i did to solve mine.

  1. Cassandra does seem not to be working with Java 11
  2. install java 8 by runing this command: sudo apt install openjdk-8-jdk openjdk-8-jre
  3. Run the following command to chose the java 8: sudo update-alternatives --config java
  4. reboot you ubuntun computer or VM
  5. start cassandra: sudo service cassandra start
  6. check cassandra status: service cassandra status
like image 149
uchenna nnamani Avatar answered Oct 21 '25 23:10

uchenna nnamani


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.

like image 24
user1787252 Avatar answered Oct 21 '25 23:10

user1787252