Cassandra: Active: failed (Result: exit-code)

1.8k Views Asked by At

I installed the cassandra 3.11.11 in the Centos 7. I configurated the cassandra.service. When I ran, the error below appear:

EDIT

● cassandra.service - Apache
   Loaded: loaded (/etc/systemd/system/cassandra.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2021-09-30 12:22:08 EDT; 2min 6s ago
  Process: 5972 ExecStart=/usr/sbin/cassandra -f -p /var/run/cassandra/cassandra.pidx (code=exited, status=203/EXEC)
 Main PID: 5972 (code=exited, status=203/EXEC)

Sep 30 12:22:08 GDBDEV08 systemd[1]: Started Apache.
Sep 30 12:22:08 GDBDEV08 systemd[1]: cassandra.service: main process exited, code=exited, status=203/EXEC
Sep 30 12:22:08 GDBDEV08 systemd[1]: Unit cassandra.service entered failed state.
Sep 30 12:22:08 GDBDEV08 systemd[1]: cassandra.service failed.

/etc/systemd/system/Cassandra.server

[Unit]
Description=Apache
Cassandra After=network.target
[Service]
PIDFile=/var/run/cassandra/cassandra.pid
User=cassandra
Group=cassandra
ExecStart=/usr/sbin/cassandra -f -p /var/run/cassandra/cassandra.pidx
1

There are 1 best solutions below

1
On BEST ANSWER

With very little information, it's hard to guess at why it's failing.

For what it's worth, Cassandra 3.11 only works with Java 8. If you're using a newer Java release, that would explain why you're getting the "class not found" error.

As Aaron suggested, you need to check the logs for startup errors. You will need to update your original question and post the full error message + full stacktrace so we could tell you why it failed to start. Cheers!