Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

python-cassandra-docker-compose

docker-compose:

  • a cassandra cluster with two nodes
  • some basic python code to interact with cassandra

Workflow

wait for one minute after docker-compose up for cassandra to start

docker-compose up
docker exec -it app python3 create_tables.py
docker exec -it app python3 seed_db.py
docker exec -it app python3 query.py

Reference:

https://github.com/datastax/python-driver/blob/master/example_core.py

https://towardsdatascience.com/getting-started-with-apache-cassandra-and-python-81e00ccf17c9

https://blog.alejandrocelaya.com/2017/04/21/set-specific-ip-addresses-to-docker-containers-created-with-docker-compose/

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages