项目作者: linuxuser586

项目描述 :
Distroless Cassandra
高级语言: Go
项目地址: git://github.com/linuxuser586/cassandra.git
创建时间: 2019-07-06T10:27:42Z
项目社区:https://github.com/linuxuser586/cassandra

开源协议:Apache License 2.0

下载


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.

  1. sudo sysctl -w vm.max_map_count=1048575
  2. 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

  1. docker exec -t cassandra nodetool info

To save data, use something like the following.

  1. 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.

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