Şöyle yaparız
version: '3.9'services:cassandra_db:container_name: cassandra_local_dbimage: cassandra:4.1.0ports:- "9042:9042"volumes:- ./config/cassandra-config.yaml:/etc/cassandra/cassandra.yaml- ./data/data-for-input.csv:/tmp/data/data-for-input.csv
Açıklaması şöyle
Bağlanmak için şöyle yaparızThe Cassandra database has a configuration file where all configurations are stored. This file is located in etc/cassandra directory and is called cassandra.yaml.
$docker container exec -it cassandra_local_db bash $nodetool status $cqlsh -ucassandra -pcassandra
Hiç yorum yok:
Yorum Gönder