How-to Install Apache Cassandra on Ubuntu 13.10 Saucy 32/64bit Easy Guide

October 23rd, 2013 by thelinuxevangelist

How-to Install Apache Cassandra on Ubuntu 13.10 Saucy




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

Pre-Requisite to Cassandra 3.x Database Set-Up is the Oracle Java JDK 8 Installation on System!

The Content and Details of How-to Install Apache Cassandra on Ubuntu 13.10 Saucy are Essentials and Give Focus only to Instructions and Commands.

Install Apache Cassandra on Ubuntu 13.10 Saucy - Featured
  1. Pre-Requisite 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
    Install Apache Cassandra on Ubuntu 13.10 Saucy - tar.gz Archive Extraction
  4. Open Terminal Window
    (Press “Enter” to Execute Commands)

    Cmd and Search “term”

    Install Apache Cassandra on Ubuntu 13.10 Saucy - 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/log4j-server.properties

    Modify:

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

  10. Getting-Started with Cassandra Database:

    Cassandra Quick-Start Guide
  11. Then Thanks to the Apache Software Foundation You are Able to Getting-Started with NoSQL Database Apache Cassandra on Ubuntu Linux.

(Visited 1 times, 1 visits today)

Tags: , , , , , , ,


Comments are disabled