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`
|
|
|
|
|
2024-07-24 18:05:37 +02:00
|
|
|
force recreate docker image
|
|
|
|
|
|
|
|
`docker compose build --no-cache`
|
|
|
|
|
2024-07-24 15:03:39 +02:00
|
|
|
check status:
|
|
|
|
`docker exec -it cassandra-cassandra-1 nodetool status`
|
|
|
|
|
|
|
|
|
2024-07-24 18:05:37 +02:00
|
|
|
|
2024-07-24 15:03:39 +02:00
|
|
|
run a single service:
|
|
|
|
* cassandra1: `docker-compose up cassandra-cassandra1 --build`
|
|
|
|
* cassandra2: `docker-compose up cassandra-cassandra2 --build`
|
|
|
|
* ,...
|
|
|
|
|
|
|
|
open bash on server
|
|
|
|
|
2024-07-30 17:03:33 +02:00
|
|
|
* cassandra1: `docker exec -it cassandra1 /bin/bash `
|
2024-07-24 15:41:02 +02:00
|
|
|
* cassandra2: `docker exec -it cassandra2 /bin/bash`
|
|
|
|
* cassandra3: `docker exec -it cassandra3 /bin/bash`
|
2024-07-24 15:03:39 +02:00
|
|
|
|
|
|
|
|