Installing Cassandra

With the JVM ready, installing Cassandra is as easy as downloading the appropriate tarball from the Apache Cassandra's download page ( and untarring it. On Debian or Ubuntu, you may install Cassandra from either a .tar file or an Apache Software Foundation repository.

Installing from a tarball

It is assumed that Cassandra is installed in the /opt directory, the data files are installed in the /cassandra-data directory, and the system logs are installed in /var/log/cassandra. These are just some conventions that were chosen by me. You may choose a location that suits you best:

# Download. Please select appropriate version and URL from
$ wget \ ...

Get Mastering Apache Cassandra - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.