Quick Getting Started on Apache Cassandra for Mac OS X Easy-Visual Guide

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

The Guide shows you Step-by-Step How to Quick Start with Connection and Data Insertion/Query for the Apache Cassandra NoSQL Database for macOS Desktop.

If You do Not Already Dispose of a Cassandra Working Installation below Link to SetUp on Mac OS X.

The Contents and Details are Essentials and Give Focus only to Instructions and Commands.

Linux GNOME Penguin Cassandra
  1. How to Install and Start Cassandra on Mac OS X:

    Cassandra Installation Mac

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

  3. Connect to Cassandra Running Instance

    cd /cassandra
    ./bin/cassandra-cli
  4. Create Keyspace and Column Family

    create keyspace testkeysp
    use testkeysp
    create column family testcolfam
    with key_validation_class = 'UTF8Type'
    and comparator = 'UTF8Type'
    and default_validation_class = 'UTF8Type';
  5. Insert and Read Back Data

    set testcolfam[1][name] = turing;
    get testcolfam[1];

Tags: , , , , , , , ,