To install Cassendra on Debian-based systems (Ubuntu), perform the following steps:
- Add the repository to the /etc/apt/sources.list.d/cassandra.sources.list:
$ echo "deb http://debian.datastax.com/community stable main" |
sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
- Add the DataStax repository key to your aptitude trusted keys:
$ curl -L https://debian.datastax.com/debian/repo_key | sudo
apt-key add -
- Install the latest package:
$ sudo apt-get update
$ sudo apt-get install dsc30
- Start Cassandra:
$ sudo service cassandra start
- Verify the Cassandra installation:
$ nodetool status
Your result should look something like the preceding except for a different Host ID.
- Stop Cassandra:
$ sudo service cassandra stop