我正在使用Centos(CentOS Linux版本7.3.1611),并尝试使用Cassandra(3.0.9)。安装很容易遵循,到目前为止很好。但是当我启动Cassandra(使用systemctl start cassandra
)时,服务是:
“active (exited)
”而不是“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.
我决定使用systemctl restart cassandra
重启服务,但停止过程出现问题:
[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.
你有什么想法解决这个问题吗?谢谢:))
度过愉快的一天。
答案 0 :(得分:0)
您的问题的答案在Cassandra日志中。参见/var/log/cassandra/system.log