Navigation Menu

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>

Keybase proof

I hereby claim:

  • I am acm1 on github.
  • I am acm (https://keybase.io/acm) on keybase.
  • I have a public key whose fingerprint is D565 65CE 206B 54D4 EE29 FBF3 3510 EC4C 3990 D009

To claim this, I am signing this object:

@acm1
acm1 / gist:af82a7da748c77e09452
Created August 12, 2014 22:24
use rubygems.org for scout
gem source --add https://rubygems.org
gem install scout --no-rdoc --no-ri