Installing DataStax Community on any Linux-based platform
Install on all Linux-based platforms, including Mac OSX and platforms without package support, or if you do not have or want a root installation.
For a complete list of supported platforms, see DataStax Community – Supported Platforms.
- The latest version of Oracle Java SE Runtime Environment (JRE) 6 or 7. See Installing the JRE.
- Java Native Access (JNA) is required for production installations. See Installing the JNA.
The binary tarball runs as a stand-alone process.
In a terminal window:
Check which version of Java is installed by running the following
java -versionUse the latest version of Java 6 or 7 on all nodes.
Download the DataStax Community tarball:
$ curl -OL http://downloads.datastax.com/community/dsc.tar.gzYou can also download from Planet Cassandra.
Unpack the distribution:
$ tar -xvzf dsc.tar.gz $ rm *.tar.gz
Go to the install directory:
By default, Cassandra installs files into the
/var/log/cassandra directories. If you do not have root
access to the default directories, ensure you have write access:
$ 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