Sign inSign up

zhicwu/cassandra

By zhicwu

•Updated about 9 years ago

Apache Cassandra docker image for development and testing purposes.

Image
1

3.4K

zhicwu/cassandra repository overview

⁠docker-cassandra

Apache Cassandra docker image for development and testing purposes.

⁠What's inside

ubuntu:16.04
 |
 |--- zhicwu/java:8
       |
       |--- zhicwu/cassandra:3.0.x

⁠How to use

  • Pull the image
# docker pull zhicwu/cassandra:3.0
  • Setup scripts
# wget https://raw.githubusercontent.com/zhicwu/docker-cassandra/master/start-node.sh
# chmod +x *.sh
  • Start Cassandra
# ./start_node.sh
# docker logs -f my-cassandra
...
# docker exec -it my-cassandra bash
$ cqlsh -u cassandra -p cassandra

You can now use cassandra/cassandra to access the node.

Tips:

  1. Edit cluster-env.sh to customize cluster environment, which should be same for all nodes in a data center or whole cluster
  2. Edit node-env.sh to customize node environment
  3. Edit start-node.sh to customize docker start options
  4. To enable Jolokia, make changes in node-env.sh like the following, restart Cassandra and connect using tools like hawtio⁠
JMX_REMOTE="yes"
JOLOKIA_ENABLED="yes"
JMX_USERNAME="ffa"
JMX_PASSWORD="ffa"

Tag summary

Content type

Image

Digest

sha256:dcfd63daf…

Size

670.5 MB

Last updated

over 10 years ago

docker pull zhicwu/cassandra