Skip to content

Instantly share code, notes, and snippets.

@acm1
acm1 / gist:a2cf2a475ef57245db62
Created October 6, 2015 21:43 — forked from nstielau/gist:3373649
Remove an unreachable node from Cassandra via JMX
wget http://jmxsh.googlecode.com/files/jmxsh-R5.jar
java -jar jmxsh-R*.jar -h localhost -p 7199
% [Hit Enter to go into Browse Mode]
Select a domain: [Enter number for org.apache.cassandra.net]
Select an mbean: [Enter number for org.apache.cassandra.net:type=Gossiper]
Select an attribute or operation: [Enter number for unsafeAssassinateEndpoint(String p1)]
p1 (String): [Enter IP address of problem node]
It may also be possible to run it directly (untested):
% jmx_invoke -m org.apache.cassandra.net:type=Gossiper unsafeAssassinateEndpoint <STALE-IP-ADDRESS>