Skip to content

2much2learn/article-oct192021-cassandra-with-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Initialize Cassandra database during docker container startup

Source code for article published @ https://2much2learn.com/setting-up-cassandra-with-docker/

λ git clone https://github.com/2much2learn/article-oct192021-cassandra-with-docker.git

λ cd article-oct192021-cassandra-with-docker
λ docker-compose up -d
λ docker exec -it article-oct192021-cassandra-with-docker-cassandra-1 bash
I have no name!@d2fc96819e4b:/$ /opt/bitnami/cassandra/bin/cqlsh -u cassandra -p cassandra

cassandra@cqlsh> DESCRIBE keyspaces;

cycling  system_auth         system_schema  system_views
system   system_distributed  system_traces  system_virtual_schema

cassandra@cqlsh> use cycling;

cassandra@cqlsh:cycling>
cassandra@cqlsh:cycling> DESCRIBE tables;

cyclist_name  cyclist_races  race_times  rank_by_year_and_name

cassandra@cqlsh:cycling> DESCRIBE types;

race

Releases

No releases published

Packages

No packages published