Sunday, May 12, 2013

How-to Install and Getting-Started Apache Cassandra on Linux Ubuntu 13.04 Raring 32/64bit Easy-Visual Guide

The Guide Show Step-by-Step How-to Install and Getting-Started with the Latest Apache Cassandra NoSQL Database for Linux 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.

The Content and Details are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make Tut Easier to Read & Digest ;)

Linux Gnome Penguin Cassandra
  1. Download Latest Apache Cassandra Release:

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

    Cmd and Search "term"

    Linux Ubuntu Raring Open Terminal
  4. Relocate Cassandra Directory
    mv /tmp/apache-cassandra* $HOME/cassandra/
    mkdir $HOME/cassandra/{commitlog,log,data,saved_caches}
  5. 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
  6. Set Log Directory
    nano conf/log4j-server.properties

    Modify:

    log4j.appender.R.file=/home/<userName>/cassandra/log/system.log
  7. Start Cassandra Instance
    ./bin/cassandra
  8. 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 :)

  9. Getting-Started with Cassandra Database:

    Cassandra Quick-Start Guide