From cassandra-user Thu Dec 05 16:57:04 2019 From: Lapo Luchini Date: Thu, 05 Dec 2019 16:57:04 +0000 To: cassandra-user Subject: Repair shell script Message-Id: X-MARC-Message: https://marc.info/?l=cassandra-user&m=160379611303947 I'd like to set up Cassandra Reaper soon enough, but right now I'm keeping my cluster repaired with the following self-made script. I created it by reading official wiki and some of this ML's messaes, but can anyone confirm I chose the correct options? (i.e. running "repair -pr" in turn on each and every host) #!/bin/sh USER=admin PASS=password for h in host1 host2 host3 hos4 host5; do echo "****************************" echo "** Host: $h" echo "****************************" nodetool -h "$h" -u "$USER" -pw "$PASS" repair -pr | \ egrep -B1 '(Starting repair|Repair command)' done -- Lapo Luchini - http://lapo.it/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@cassandra.apache.org For additional commands, e-mail: user-help@cassandra.apache.org