Details
-
Task
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
Description
Clustertool is a "run an operation against the whole cluster" tool, as opposed to nodetool which is single-node.
Clustertool never achieved feature parity with nodetool and never will for long, since it has to be manually updated for each operation type.
Since it's trivial to just use standard tools to run nodetool against an entire cluster, let's drop clustertool in favor of encouraging that.
Some examples. The first two assume a file "clustermembers" with your cluster host names; dsh will want that in /etc/dsh/groups instead of cwd.
bash:
for host in `cat clustermembers`; do nodetool -h $host command;done
xargs:
# one op at a time cat clustermembers | xargs -n 1 -I{} nodetool -h {} command # parallelize cat clustermembers | xargs -P `wc -l clustermembers` -n 1 -I{} nodetool -h {} command
dsh:
# one at a time dsh -g clustermembers -- nodetool -h localhost command # parallelize dsh -g -c clustermembers -- nodetool -h localhost command