cassandra

module
v0.0.0-...-dd1685f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2019 License: Apache-2.0

README

Distroless Cassandra (BETA)

This repository contains Cassandra that runs in a distroless container for Docker/Kubernetes

See LICENSE

Run

Only tested on Linux at this time. Use NO_TLS set to true for development. Using TLS requires more advanced configuration and will be documented in the future. You will need to download cqlsh, found in the Cassandra distribution, if you want to run queries.

sudo sysctl -w vm.max_map_count=1048575
docker run -it --rm -p 9042:9042 --cap-add SYS_RESOURCE --name cassandra -e NO_TLS=true linuxuser586/cassandra

In another terminal you can issue commands such as

docker exec -t cassandra nodetool info

To save data, use something like the following.

docker run -it --rm -p 9042:9042 --cap-add SYS_RESOURCE --name cassandra -v ~/cassandra/demo:/var/lib/cassandra -e NO_TLS=true linuxuser586/cassandra

Configuration

You may add your own cassandra.yaml. You can start with the official version found in the cassandra release or just add the config you are interested in changing. For example if you just want to update the cluster you can create a conf directory and in your cassandra.yaml in that directory add cluster_name: 'Demo Cluster'. Then run the below command.

docker run -it --rm -p 9042:9042 --cap-add SYS_RESOURCE --name cassandra -v ~/conf:/conf -e NO_TLS=true linuxuser586/cassandra

Directories

Path Synopsis
cmd
pkg
apis/backup/v1
Package v1 is the version 1 backup responsible for managing the raw files
Package v1 is the version 1 backup responsible for managing the raw files
jvm
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL