Illustration Image

Cassandra.Link

The best knowledge base on Apache Cassandra®

Helping platform leaders, architects, engineers, and operators build scalable real time data platforms.

5/25/2018

Reading time:1 min

thelastpickle/docker-cassandra-bootstrap

by John Doe

A new blog post covering each of the main components of this project can be found here:http://thelastpickle.com/blog/2018/01/23/docker-meet-cassandra.htmlgit clone git@github.com:thelastpickle/docker-cassandra-bootstrap.gitcd docker-cassandra-bootstrapcp .env.template .envdocker-compose buildIf you would like to see a hosted log service interact seemlessly with this Docker Compose stack, sign up for Papertrail.Then find your specific port number by looking at your Log Destinations and update your .env setting accordingly.# turn off all running Docker containersdocker-compose down# delete any persistent datarm -rf data/# rebuild the imagesdocker-compose buildStart our Docker-integrated logging connector:# start Docker logging connectordocker-compose up logspout# view logging HTTP endpointcurl http://localhost:8000/logsStart Cassandra and setup the required schema:# start Cassandradocker-compose up cassandra# view cluster statusdocker-compose run nodetool status# create schemadocker-compose run cqlsh -f /schema.cql# confirm schemadocker-compose run cqlsh -e "DESCRIBE SCHEMA;"Start Reaper for Apache Cassandra and monitor your new cluster:# start Reaper for Apache Cassandradocker-compose up cassandra-reaperopen http://localhost:8080/webui/# add one-off repair# add scheduled repairStart Prometheus and become familiar with the UI:# start Prometheusdocker-compose up prometheusopen http://localhost:9090Start Grafana, connect it to the Prometheus data source, and upload the TLP Dashboards.# start Grafanadocker-compose up grafana# create ./grafana/bin/create-data-sources.sh# user/pass: admin/adminopen http://localhost:3000# upload dashboards./grafana/bin/upload-dashboards.shGenerate fake workforce and activity:docker-compose run pickle-factorySample timesheets:docker-compose run pickle-shop

Illustration Image

A new blog post covering each of the main components of this project can be found here:

http://thelastpickle.com/blog/2018/01/23/docker-meet-cassandra.html

git clone git@github.com:thelastpickle/docker-cassandra-bootstrap.git
cd docker-cassandra-bootstrap
cp .env.template .env
docker-compose build

If you would like to see a hosted log service interact seemlessly with this Docker Compose stack, sign up for Papertrail.

Then find your specific port number by looking at your Log Destinations and update your .env setting accordingly.

# turn off all running Docker containers
docker-compose down
# delete any persistent data
rm -rf data/
# rebuild the images
docker-compose build

Start our Docker-integrated logging connector:

# start Docker logging connector
docker-compose up logspout
# view logging HTTP endpoint
curl http://localhost:8000/logs

Start Cassandra and setup the required schema:

# start Cassandra
docker-compose up cassandra
# view cluster status
docker-compose run nodetool status
# create schema
docker-compose run cqlsh -f /schema.cql
# confirm schema
docker-compose run cqlsh -e "DESCRIBE SCHEMA;"

Start Reaper for Apache Cassandra and monitor your new cluster:

# start Reaper for Apache Cassandra
docker-compose up cassandra-reaper
open http://localhost:8080/webui/
# add one-off repair
# add scheduled repair

Start Prometheus and become familiar with the UI:

# start Prometheus
docker-compose up prometheus
open http://localhost:9090

Start Grafana, connect it to the Prometheus data source, and upload the TLP Dashboards.

# start Grafana
docker-compose up grafana
# create 
./grafana/bin/create-data-sources.sh
# user/pass: admin/admin
open http://localhost:3000
# upload dashboards
./grafana/bin/upload-dashboards.sh

Generate fake workforce and activity:

docker-compose run pickle-factory

Sample timesheets:

docker-compose run pickle-shop

Related Articles

python
java
cassandra

Vald

John Doe

2/11/2024

Checkout Planet Cassandra

Claim Your Free Planet Cassandra Contributor T-shirt!

Make your contribution and score a FREE Planet Cassandra Contributor T-Shirt! 
We value our incredible Cassandra community, and we want to express our gratitude by sending an exclusive Planet Cassandra Contributor T-Shirt you can wear with pride.

Join Our Newsletter!

Sign up below to receive email updates and see what's going on with our company

Explore Related Topics

AllKafkaSparkScyllaSStableKubernetesApiGithubGraphQl

Explore Further

cassandra