How-to Install and Getting-Started with Apache Cassandra on Mac OS X Easy-Visual Guide

May 12th, 2013 by Regaz

The Guide Shows You Step-by-Step How-to Install and Getting-Started with the Latest Apache Cassandra NoSQL Database for Mac OS X 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 Essentials and Give Focus only to Instructions and Commands.

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

    Apache Cassandra tar.gz

  2. Double-Click on Archive and Extract Cassandra Into /tmp
  3. Open a Terminal Window
    (Press “Enter” to Execute Commands)
  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: /Users/USERNAME/cassandra/data

    • commitlog_directory: /Users/USERNAME/cassandra/commitlog

    • saved_caches_directory: /Users/USERNAME/cassandra/saved_caches

  6. Set Log Directory
    nano conf/



  7. Start Cassandra Instance
  8. Check Connection to Cassandra Instance with nodetool
    ./bin/nodetool --host ring

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

  9. Getting-Started with Cassandra Database:

    Cassandra Quick-Start Guide

Tags: , , , , , , , ,