Cassandra didn't stop at Centos
I am working on Centos (CentOS Linux 7.3.1611 release) and trying to use Cassandra (3.0.9). The setup was pretty easy to follow and so far so good. But when I start Cassandra (using systemctl start cassandra
) the service is: " active (exited)
" instead of " active (running)
".
[root@localhost ~]# systemctl status cassandra
● cassandra.service - SYSV: Starts and stops Cassandra
Loaded: loaded (/etc/rc.d/init.d/cassandra; bad; vendor preset: disabled)
Active: active (exited) since Wed 2017-05-03 12:06:54 CEST; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 9337 ExecStart=/etc/rc.d/init.d/cassandra start (code=exited, status=0/SUCCESS)
May 03 12:06:54 localhost.localdomain systemd[1]: Starting SYSV: Starts and stops Cassandra...
May 03 12:06:54 localhost.localdomain su[9344]: (to cassandra) root on none
May 03 12:06:54 localhost.localdomain cassandra[9337]: Starting Cassandra: OK
May 03 12:06:54 localhost.localdomain systemd[1]: Started SYSV: Starts and stops Cassandra.
I decided to restart the service using systemctl restart cassandra
but there is a problem with the stop process:
[root@localhost ~]# systemctl restart cassandra
[root@localhost ~]# systemctl status cassandra
● cassandra.service - SYSV: Starts and stops Cassandra
Loaded: loaded (/etc/rc.d/init.d/cassandra; bad; vendor preset: disabled)
Active: active (exited) since Wed 2017-05-03 12:15:50 CEST; 32s ago
Docs: man:systemd-sysv-generator(8)
Process: 9478 ExecStop=/etc/rc.d/init.d/cassandra stop (code=exited, status=1/FAILURE)
Process: 9508 ExecStart=/etc/rc.d/init.d/cassandra start (code=exited, status=0/SUCCESS)
May 03 12:15:49 localhost.localdomain systemd[1]: cassandra.service: control process exited, code=exited status=1
May 03 12:15:49 localhost.localdomain systemd[1]: Unit cassandra.service entered failed state.
May 03 12:15:49 localhost.localdomain systemd[1]: cassandra.service failed.
May 03 12:15:49 localhost.localdomain systemd[1]: Starting SYSV: Starts and stops Cassandra...
May 03 12:15:49 localhost.localdomain su[9515]: (to cassandra) root on none
May 03 12:15:50 localhost.localdomain cassandra[9508]: Starting Cassandra: OK
May 03 12:15:50 localhost.localdomain systemd[1]: Started SYSV: Starts and stops Cassandra.
Do you have an idea to solve this problem? Thank:)
A good day.
+3
source to share
No one has answered this question yet
Check out similar questions: