ports/databases/cassandra2/files/repaircluster.in
Kurt Jaeger ebe20a9e0d New port: databases/cassandra2
Cassandra is a highly scalable, eventually consistent, distributed,
structured key-value store. Cassandra brings together the distributed
systems technologies from Dynamo and the data model from Google's
BigTable. Like Dynamo, Cassandra is eventually consistent. Like
BigTable, Cassandra provides a ColumnFamily-based data model richer
than typical key/value systems.

Cassandra was open sourced by Facebook in 2008, where it was designed
by one of the authors of Amazon's Dynamo. In a lot of ways you can
think of Cassandra as Dynamo 2.0. Cassandra is in production use at
Facebook but is still under heavy development.

WWW: http://cassandra.apache.org/

The previous version is still available as databases/cassandra.

PR:		186056
Submitted by:	admins@perceptyx.com
2014-08-29 07:18:10 +00:00

12 lines
291 B
Bash

#! /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