How to Install Apache Cassandra on Ubuntu 13.04 Raring
The Guide shows you Step-by-Step How to Install and Getting-Started with the Latest Apache Cassandra NoSQL Database for Ubuntu 13.04 Raring Ringtail Unity i386/amd64 Desktop.
Here is Described a Local Installation because for a System-Wide One the User Need to have Root-Privileges… The Default System Installation Instead, is Pre-Configured to be in /var/lib/cassandra Directory with Logs in /var/log/cassandra.
PreRequisite to Cassandra is the Oracle Java JDK6 Installation because the Newest JDK is Not Recommended…
The Contents and Details are Essentials and Give Focus only to Instructions and Commands.
-
PreRequisite Oracle-Sun Official Java JDK6 for Ubuntu
Installing Oracle JDK6 for Ubuntu
-
Download Latest Apache Cassandra Release:
-
Double-Click on Archive and Extract Cassandra into /tmp
-
Open Terminal Window
(Press “Enter” to Execute Commands)
Cmd and Search “term”.
-
Relocate Cassandra Directory
mv /tmp/apache-cassandra* $HOME/cassandra/
mkdir $HOME/cassandra/{commitlog,log,data,saved_caches}
-
Edit Configuration File
cd $HOME/cassandra
nano conf/cassandra.yaml
Modify the Following Lines:
-
data_file_directories:
– /home/<username>/cassandra/data
-
commitlog_directory: /home/<username>/cassandra/commitlog
-
saved_caches_directory: /home/<username>/cassandra/saved_caches
-
Set Log Directory
nano conf/log4j-server.properties
Modify:
log4j.appender.R.file=/home/[username]/cassandra/log/system.log
-
Start Cassandra Instance
./bin/cassandra
-
Check Connection to Cassandra Instance with nodetool
./bin/nodetool --host 127.0.0.1 ring
The Output will Confirm that the Cassandra Database is Successfully Installed on Your Ubuntu System :)
-
Getting-Started with Cassandra Database:
Cassandra Quick Start Guide