DataStax provides binary tarball distributions of Cassandra for installing on platforms that do not have package support, such as Mac, or if you do not have or want to do a root installation. For a complete list of supported platforms, see DataStax Community – Supported Platforms.
By downloading community software from DataStax you agree to the terms of the DataStax Community EULA (End User License Agreement) posted on the DataStax web site.
Before installing Cassandra make sure the following prerequisites are met:
Check which version of Java is installed by running the following command in a terminal window:
DataStax recommends using the most recently released version of Oracle Java SE Runtime Environment (JRE) 6 on all DSE nodes. Versions earlier than 1.6.0_19 should not be used. Java 7 is not recommended. If you need help installing Java, see Installing Oracle JRE.
Download the Cassandra DataStax Community tarball:
$ curl -OL http://downloads.datastax.com/community/dsc-cassandra-1.0.9-bin.tar.gz
Unpack the distribution:
$ tar -xvzf dsc-cassandra-1.0.9-bin.tar.gz $ rm *.tar.gz
By default, Cassandra installs files into the /var/lib/cassandra and /var/log/cassandra directories.
If you do not have root access to the default directories, ensure you have write access as follows:
$ sudo mkdir /var/lib/cassandra $ sudo mkdir /var/log/cassandra $ sudo chown -R $USER:$GROUP /var/lib/cassandra $ sudo chown -R $USER:$GROUP /var/log/cassandra