Created
August 16, 2012 21:03
-
-
Save nstielau/3373649 to your computer and use it in GitHub Desktop.
Remove an unreachable node from Cassandra via JMX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment