Reputation: 6950
I'm creating a script to invoke nodetool operations such as 'nodetool repair' on a given remote Cassandra node. I can do this by performing the command via ssh, but I was wondering if there is a better way, e.g. is there some web (rest?) interface that I don't know about?
Thank you for your attention
Upvotes: 1
Views: 630
Reputation: 2430
You can use nodetool on remote host the following way:
nodetool -h <ipaddress> repair
Upvotes: 1
Reputation: 2982
Basically, what nodetool does when you run repair is to start it via JMX. You can do the same.
Upvotes: 0