Git Product home page Git Product logo

cassandra-ubuntu's Introduction

cassandra-ubuntu

Everything to deploy a multi-node, single-datacenter Cassandra cluster on Ubuntu.

This guide works for Cassandra versions 3.x. Steps for future versions might differ.

Bootstrap node

Install Cassandra as a service

  • echo "deb http://debian.datastax.com/datastax-ddc 3.2 main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list (replace 3.2 with the version you're installing)
  • curl -L https://debian.datastax.com/debian/repo_key | sudo apt-key add -
  • sudo apt-get update
  • sudo apt-get install datastax-ddc

Pick certain nodes as seed nodes. It is recommended to have more than one seed per cluster for fault tolerance.

Initialize the cluster

  • First, stop Cassandra and clear data since the package installation starts it automatically.
    • sudo service cassandra stop
    • sudo rm -rf /var/lib/cassandra/data/system/*
  • Edit /etc/cassandra/cassandra.yaml. See cassandra.yaml. For advanced properties, see this.

Start Cassandra

  • First, start all seeds and then the other nodes.
    • sudo service cassandra start
  • Check that the service is running.
    • sudo service cassandra status
  • Check that all nodes are part of the cluster.
    • sudo nodetool status
  • Use the cqlsh utility to operate the cluster.

References

  1. http://docs.datastax.com/en/cassandra/3.x/cassandra/install/installDeb.html
  2. http://docs.datastax.com/en/cassandra/3.x/cassandra/initialize/initSingleDS.html
  3. http://docs.datastax.com/en/cassandra/2.0/cassandra/security/secureFireWall_r.html

Troubleshooting

  1. Startup failures? Logs are your best friend! /var/log/cassandra/
  2. http://docs.datastax.com/en/cassandra/3.x/cassandra/troubleshooting/trblshootTOC_g.html

cassandra-ubuntu's People

Contributors

anchal-agrawal avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.