27 Şubat 2023 Pazartesi

Docker Compose ve Apache Cassandra

Örnek
Şöyle yaparız
version: '3.9'

services:
  cassandra_db:
    container_name: cassandra_local_db
    image: cassandra:4.1.0
    ports:
      - "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
The Cassandra database has a configuration file where all configurations are stored. This file is located in etc/cassandra directory and is called cassandra.yaml.
Bağlanmak için şöyle yaparız
$docker container exec -it cassandra_local_db bash

$nodetool  status

$cqlsh -ucassandra -pcassandra


Hiç yorum yok:

Yorum Gönder