João Matos
João Matos

Reputation: 6950

Nodetool operations on a remote Cassandra node

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

Answers (2)

Oresztesz
Oresztesz

Reputation: 2430

You can use nodetool on remote host the following way:

nodetool -h <ipaddress> repair

Upvotes: 1

Horia
Horia

Reputation: 2982

Basically, what nodetool does when you run repair is to start it via JMX. You can do the same.

Upvotes: 0

Related Questions