Starting Cassandra as a stand-alone process

Start the Cassandra Java server process for tarball installations.

Start the Cassandra Java server process for tarball installations.

Procedure

On initial start-up, each node must be started one at a time, starting with your seed nodes.
  • To start Cassandra in the background:
    cd install_location
    bin/cassandra #Starts Cassandra
  • To start Cassandra in the foreground:
    cd install_location
    bin/cassandra -f #Starts Cassandra
  • To monitor the progress of the startup:
    tail -f logs/system.log
    Cassandra is ready when it shows an entry like this in the system.log:
    INFO  [main] 2020-01-09 01:57:03,846 Server.java:194 - Starting listening for CQL clients on localhost/127.0.0.1:9042...
    INFO  [main] 2020-01-09 01:57:03,887 ThriftServer.java:119 - Binding thrift service to localhost/127.0.0.1:9160
    INFO  [Thread-2] 2020-01-09 01:57:03,891 ThriftServer.java:136 - Listening for thrift clients...
  • To check the status of Cassandra:
    bin/nodetool status

    The status column in the output should report UN which stands for Up/Normal.

    Datacenter: datacenter1
    =======================
    Status=Up/Down
    |/ State=Normal/Leaving/Joining/Moving
    --  Address    Load       Tokens       Owns (effective)  Host ID                               Rack
    UN  127.0.0.1  163.39 KB  256          100.0%            054b5c11-32dd-43c3-8f30-abcd66ba977b  rack1