-
Notifications
You must be signed in to change notification settings - Fork 0
Cassandra
Luke Chen edited this page Mar 6, 2021
·
23 revisions
Installation from Debian packages
https://cassandra.apache.org/download/
sudo service cassandra start
sudo service cassandra stop
You can start Cassandra with sudo service cassandra start and stop it with sudo service cassandra stop. However, normally the service will start automatically. For this reason be sure to stop it if you need to make any configuration changes.
Verify that Cassandra is running by invoking nodetool status from the command line.
$ nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns (effective) Host ID Rack
UN 127.0.0.1 70.75 KiB 256 100.0% 30848df6-476d-4728-b2cb-ec769fd5e2d8 rack1
The Cassandra service gets started automatically after installation. Monitor the progress of the startup with:
$ tail -f /var/log/cassandra/system.log
The default location of configuration files is /etc/cassandra.
The default location of log and data directories is /var/log/cassandra/ and /var/lib/cassandra.
Start-up options (heap size, etc) can be configured in /etc/default/cassandra.
$ cqlsh