2024-07-24 15:03:39 +02:00
|
|
|
dump:
|
|
|
|
|
|
|
|
dump requires nodetool
|
|
|
|
in prod, nodetool is in /usr/bin/
|
|
|
|
|
|
|
|
in dev environment, cassandra has been installed manually and nodetool is not in the path
|
|
|
|
|
|
|
|
* dev should be aliegned to prod
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# DOCKER
|
|
|
|
|
|
|
|
aggiungere a /etc/host l'entry:
|
|
|
|
|
|
|
|
127.0.0.1 cassandra
|
|
|
|
|
|
|
|
start composer:
|
|
|
|
`docker compose up --build`
|
|
|
|
|
|
|
|
check status:
|
|
|
|
`docker exec -it cassandra-cassandra-1 nodetool status`
|
|
|
|
|
|
|
|
|
|
|
|
run a single service:
|
|
|
|
* cassandra1: `docker-compose up cassandra-cassandra1 --build`
|
|
|
|
* cassandra2: `docker-compose up cassandra-cassandra2 --build`
|
|
|
|
* ,...
|
|
|
|
|
|
|
|
open bash on server
|
|
|
|
|
2024-07-24 15:41:02 +02:00
|
|
|
* cassandra1: `docker exec -it cassandra1 /bin/bash`
|
|
|
|
* cassandra2: `docker exec -it cassandra2 /bin/bash`
|
|
|
|
* cassandra3: `docker exec -it cassandra3 /bin/bash`
|
2024-07-24 15:03:39 +02:00
|
|
|
|
|
|
|
|