I have installed Apache cassandra 3.11.9 on AMAZON EC2 Instance when i try to start Apache cassandra as service (service cassandra start) it comes up , there are no errors seen in the system.log but immediately fails with below error when checking for status (service cassandra status)
[root@ip-172-31-18-199 init.d]# uname -a
Linux ip-172-31-18-199.us-west-2.compute.internal 4.14.209-160.339.amzn2.x86_64 #1 SMP Wed Dec 16 22:44:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@ip-172-31-18-199 init.d]# uname -r
4.14.209-160.339.amzn2.x86_64
[root@ip-172-31-18-199 init.d]# free -g
total used free shared buff/cache available
Mem: 0 0 0 0 0 0
Swap: 0 0 0
[root@ip-172-31-18-199 init.d]# cat /proc/cpuinfo |grep processor |wc -l
1
[root@ip-172-31-18-199 init.d]# java -version
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-b01)
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)
[root@ip-172-31-18-199 init.d]# python --version
Python 2.7.18
[root@ip-172-31-18-199 init.d]#
[root@ip-172-31-18-199 init.d]# cassandra -v
3.11.9
=======================================================
[root@ip-172-31-18-199 init.d]# service cassandra start
Starting cassandra (via systemctl): [ OK ]
[root@ip-172-31-18-199 init.d]#
[root@ip-172-31-18-199 ~]# service cassandra status
● cassandra.service - LSB: distributed storage system for structured data
Loaded: loaded (/etc/rc.d/init.d/cassandra; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2021-01-08 10:26:52 UTC; 6min ago
Docs: man:systemd-sysv-generator(8)
Process: 3409 ExecStop=/etc/rc.d/init.d/cassandra stop (code=exited, status=1/FAILURE)
Main PID: 3270 (code=killed, signal=KILL)
Jan 08 10:26:05 ip-172-31-18-199.us-west-2.compute.internal systemd[1]: Starting LSB: distributed storage system for structured data...
Jan 08 10:26:05 ip-172-31-18-199.us-west-2.compute.internal runuser[3186]: pam_unix(runuser:session): session opened for user cassandra by (uid=0)
Jan 08 10:26:07 ip-172-31-18-199.us-west-2.compute.internal cassandra[3175]: Starting Cassandra: OK
Jan 08 10:26:07 ip-172-31-18-199.us-west-2.compute.internal systemd[1]: Started LSB: distributed storage system for structured data.
Jan 08 10:26:27 ip-172-31-18-199.us-west-2.compute.internal systemd[1]: cassandra.service: main process exited, code=killed, status=9/KILL
Jan 08 10:26:27 ip-172-31-18-199.us-west-2.compute.internal cassandra[3409]: Shutdown Cassandra: kill: sending signal to 3270 failed: No such process
Jan 08 10:26:52 ip-172-31-18-199.us-west-2.compute.internal cassandra[3409]: ERROR: could not stop cassandra
Jan 08 10:26:52 ip-172-31-18-199.us-west-2.compute.internal systemd[1]: cassandra.service: control process exited, code=exited status=1
Jan 08 10:26:52 ip-172-31-18-199.us-west-2.compute.internal systemd[1]: Unit cassandra.service entered failed state.
Jan 08 10:26:52 ip-172-31-18-199.us-west-2.compute.internal systemd[1]: cassandra.service failed.