How-to Install Apache Cassandra on Ubuntu 16.10 Yakkety Linux Easy Guide

February 18th, 2017 by thelinuxevangelist

Cassandra QuickStart for Ubuntu 16.10 Yakkety Linux




Hello Ubuntu User! This Linux Tutorial Shows You Step-by-Step How-to Install and Getting-Started with the Latest Apache Cassandra 3.x NoSQL Database for Ubuntu 16.10 Yakkety Yak 32/64bit GNU/Linux Desktop/Server.

Here is Described a System Wide Installation, for a Local one Put stuff into Home, omit permissions and adapt commands consequently.

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

Apache Cassandra QuickStart on Ubuntu 16.10 Yakkety - Featured

Apache Cassandra Overview:

  • Proven: Cassandra is in use at eBay, CERN, GitHub, Netflix and over 1500 more companies.
  • Fault Tolerant: Data is automatically replicated to multiple nodes for fault-tolerance.
  • Performant: Cassandra consistently outperforms popular NoSQL alternatives in benchmarks and real applications.
  • Decentralized: there are no single points of failure. There are no network bottlenecks. Every node in the custer is identical.
  • Durable: Cassandra is suitable for applications that can’t afford to lose data, even when an entire data center goes down.
  • You’re in Control: Choose between synchronous or asynchronous replication for each update.
  • Elastic: Read and write throughput both increase linearly as new machines are added, with no downtime or interruption to applications.
  • Professionally Supported: Cassandra support contracts and services are available from third parties.
  1. Open a Shell Session
    Ctrl+Alt+t on desktop
    (Press “Enter” to Execute Commands)

    Installing Apache Cassandra on Ubuntu 16.10 Yakkety - Open Terminal
  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 16.10 Yakkety - tar.gz Archive Extraction
    Or from Shell:

    tar xvzf apache-cassandra*.bin.tar.gz -C /tmp/
  4. LogIn as SuperUser

    sudo su

    If Got “User is Not in Sudoers file” then Look: Solution

  5. Relocate Cassandra Directory

    mv /tmp/apache-cassandra* /var/lib/cassandra
  6. Make Needed Directories

    mkdir -p /var/log/cassandra/log
    mkdir /var/lib/cassandra/{data,saved_caches,commitlog}
  7. Creating cassandra Group and Adding Users

    groupadd cassandra
    usermod -a -G cassandra [yourUser]
    usermod -a -G cassandra root
  8. Setting Ownership over Directories

    chown -R root:cassandra /var/lib/cassandra/
    chown -R root:cassandra /var/log/cassandra/
  9. Set Permissions over Directories

    chmod 775 /var/lib/cassandra/data/
    chmod 775 /var/lib/cassandra/saved_caches/
    chmod 770 /var/lib/cassandra/commitlog/
    chmod 770 /var/log/cassandra/log/
  10. Edit Cassandra Configuration File

    cd /var/lib/cassandra
    nano conf/cassandra.yaml

    Append:

    • data_file_directories:
       - /var/lib/cassandra/data
    • commitlog_directory: /var/lib/cassandra/commitlog
    • saved_caches_directory: /var/lib/cassandra/saved_caches

    Then Search and Comment Out:
    (Ctrl+w to Search on nano)

    #cluster_name: 'Test Cluster'

    Since no Cluster is stille in work…

  11. Set Cassandra Log4j Directory

    nano conf/log4j-server.properties

    Insert:

    log4j.appender.R.file=/var/lib/cassandra/log/system.log
  12. Required Oracle-Sun Official Java JDK 8 for Ubuntu:

    Oracle JDK 8 Installation for Ubuntu
  13. Exit from SuperUser Session

    exit
  14. Start Cassandra Instance

    ./bin/cassandra

    How-to Solve Cassandra 3 Linux Installation Issues

    Cassandra 3 Troubleshootings
  15. Check Connection to Cassandra Instance with nodetool

    ./bin/nodetool --host 127.0.0.1 ring
  16. Then Thanks to the Apache Software Foundation You are Able to Getting-Started with NoSQL Database Apache Cassandra on Ubuntu Linux.

(Visited 17 times, 1 visits today)
Share on Tumblr

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


Comments are disabled