Code Monkey home page Code Monkey logo

dse-cassandra's Introduction

Docker build for DSE cassandra

There are three ways in which dse cassandra can be installed using this docker build.

  • Copy dse.tar.gz from local folder

  • Download dse.tar.gz from a host webserver

  • Download dse.tar.gz from datastax download

Build dse cassandra using the Dockerfile

docker build -t skhatri/dse-cassandra .

To run an instance of dse cassandra

docker run -d -p 9160:9160 -t skhatri/dse-cassandra 

Set port forwarding for VirtualBox for environments using boot2docker

VBoxManage modifyvm "boot2docker-vm" --natpf1 "dse-node1,tcp,127.0.0.1,9260,,9160"

The above creates a port forwarding rule so that the host listens on 9260 forwarding to a docker instance running on port 9160

From the host system, you can invoke a cqlsh or use drivers to connect to cassandra using

cqlsh localhost 9260

More nodes can be run using the docker run command and the VBoxManage command to expose the service to the host system.

Running a multinode cluster using docker containers

  • Start first node as seed
docker run -d -p 9160:9160 -p 9042:9042 -p 7199:7199 -t skhatri/cassandra
  • Find the node with 9160 and treat it as seed and start another instance
docker run -d -p 9260:9160 -e SEEDS=$(docker inspect `docker ps -a |grep 9160\-\>9160|awk '{print $1}'`|grep 172|grep IP|awk '{print $2}'|cut -d',' -f1) -t skhatri/cassandra
  • Start third instance of cassandra
docker run -d -e SEEDS=$(docker inspect `docker ps -a |grep 9160\-\>9160|awk '{print $1}'`|grep 172|grep IP|awk '{print $2}'|cut -d',' -f1) -t skhatri/cassandra

dse-cassandra's People

Contributors

skhatri avatar sureshau avatar

Watchers

James Cloos avatar epheatt 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.