blob: 678cfa4f4a4db808d7b0ef126fad5b4464e34d8b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#! /bin/sh
set -e
PATH=/bin:/usr/bin:%%LOCALBASE%%/bin:%%PREFIX%%/bin
NODETOOL=%%DATADIR%%/bin/nodetool
if test $# -eq 0; then
echo "$0 <any node in cluster> [keyspace]"
exit 1;
fi
for i in `$NODETOOL -h $1 ring | cut -d ' ' -f 1 | grep -e '^[0-9]'`; do
$NODETOOL -h $i repair $2
done
|