incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radim Kolar <...@sendmail.cz>
Subject cluster repair script
Date Wed, 05 Oct 2011 11:37:43 GMT
simple script for running cluster - wide repairs

#! /bin/sh
set -e
if test $# -eq 0; then
         echo "$0 <any node in cluster>"
         exit 1;
fi
for i in `nodetool -h $1 ring | cut -d ' ' -f 1 | grep -e '^[0-9]'`; do
         nodetool -h $i repair
done


Mime
View raw message