Assassinating a node on an older version

The nodetool assassinate command is new to Apache Cassandra as of version 2.2. Prior to Cassandra 2.2, this operation was still possible, but by invoking a command via JMX. For this to work, you will first need to download the JMXTerm JAR file from http://wiki.cyclopsgroup.org/jmxterm/.

Then, run the JAR file from the command line, connect to your node, and assassinate the endpoint:

$ java -jar ./jmxterm-1.0.0-uber.jarWelcome to JMX terminal. Type "help" for available commands.$>open 192.168.0.101:7199#Connection to 192.168.0.101:7199 is opened$>bean org.apache.cassandra.net:type=Gossiper#bean is set to org.apache.cassandra.net:type=Gossiper$>run unsafeAssassinateEndpoint 192.168.0.102#calling operation ...

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.