Database Reference
In-Depth Information
Installing on Ubuntu
First, we need to make sure that we have an up-to-date installation of the Java Runtime En-
vironment. Open the Terminal application, and type the following into the command
prompt:
$ java -version
You will see an output that looks similar to the following:
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-
0ubuntu0.14.04.1)
OpenJDK 64-bit Server VM (build 24.65-b04, mixed mode)
Note
Pay particular attention to the java version listed: it should start with 1.7. If you have an
older version of Java, or if Java isn't installed at all, you can install the correct version us-
ing the following command:
$ sudo apt-get install openjdk-7-jre-headless
Once you've got the right version of Java, you're ready to install Cassandra. First, you need
to add Apache's Debian repositories to your sources list. Add the following lines to the file
/etc/apt/sources.list :
deb http://www.apache.org/dist/cassandra/debian 21x main
deb-src http://www.apache.org/dist/cassandra/debian 21x main
In the Terminal application, type the following into the command prompt:
$ gpg --keyserver pgp.mit.edu --recv-keys F758CE318D77295D
$ gpg --export --armor F758CE318D77295D | sudo apt-key add -
$ gpg --keyserver pgp.mit.edu --recv-keys 2B5C1B00
$ gpg --export --armor 2B5C1B00 | sudo apt-key add -
$ gpg --keyserver pgp.mit.edu --recv-keys 0353B12C
$ gpg --export --armor 0353B12C | sudo apt-key add -
$ sudo apt-get update
Search WWH ::




Custom Search