How to Install and Getting Started Apache Cassandra NoSQL Database on Linux Ubuntu 13.04 Raring Easy-Visual Guide

May 12, 2013 | By Regaz | Filed in: Uncategorized.

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.

Linux GNOME Penguin Cassandra
  1. PreRequisite Oracle-Sun Official Java JDK6 for Ubuntu

    Installing Oracle JDK6 for Ubuntu
  2. Download Latest Apache Cassandra Release:

    Apache Cassandra tar.gz
  3. Double-Click on Archive and Extract Cassandra into /tmp
    Ubuntu Linux Apache Cassandra tar.gz Archive Extraction

  4. Open Terminal Window
    (Press “Enter” to Execute Commands)

    Cmd and Search “term”.

    Ubuntu Linux Raring Open Terminal
  5. Relocate Cassandra Directory

    mv /tmp/apache-cassandra* $HOME/cassandra/
    mkdir $HOME/cassandra/{commitlog,log,data,saved_caches}
  6. 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

  7. Set Log Directory

    nano conf/


  8. Start Cassandra Instance

  9. Check Connection to Cassandra Instance with nodetool

    ./bin/nodetool --host ring

    The Output will Confirm that the Cassandra Database is Successfully Installed on Your Ubuntu System :)

  10. Getting-Started with Cassandra Database:

    Cassandra Quick Start Guide

Tags: , , , , , , , , , , ,