Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.
The following page has been changed by EricEvans: http://wiki.apache.org/cassandra/NodeProbe The comment on the change is: initial draft New page: More and more instrumentation is being added to Cassandra. What has traditionally only been available from the web interface can now be obtained by querying the JMX agent. The `nodeprobe` utility provides a simple command line interface to these exposed operations and attributes. ''Note: This utility currently requires the same environment as cassandra itself, namely the same classpath (including log4j.properties), and a valid storage-conf property.'' Running `bin/nodeprobe` with no arguments produces some simple usage output. {{{ usage: java org.apache.cassandra.tools.NodeProbe -host <arg> <command> -host <arg> node hostname or ip address -port <arg> remote jmx agent port number Available commands: ring, cluster, info, cleanup, compact }}} The -host argument is required, the -port argument is optional and will default to 8080 if not supplied. == Ring == The ring command will present a lame ascii art rendition of the ring, ''as determined by the node being queried.'' {{{ bin/nodeprobe -host 10.176.0.146 ring Token(75603446264197340449435394672681112420) 3 10.176.0.146 |<--| Token(137462771597874153173150284137310597304) 3 10.176.1.161 | | Token(63538518574533451921556363897953848387) 3 10.176.1.162 |-->| }}} == Cluster == Displays the list of all known nodes and their status according to this nodes failure detector. {{{ bin/nodeprobe -host 10.176.0.146 cluster 10.176.0.146:7001 up 10.176.1.161:7001 up 10.176.1.162:7001 down }}} == Info = Outputs node information including the token, load info (on disk storage), generation number (times started), uptime in seconds, and heap memory usage. {{{ bin/nodeprobe -host 10.176.0.146 info Token(137462771597874153173150284137310597304) Load Info : 0 bytes. Generation No : 1 Uptime (seconds) : 697595 Heap Memory (MB) : 28.18 / 759.81 }}} == Cleanup == Triggers the immediate cleanup of keys no longer belonging to this node. {{{ bin/nodeprobe -host 10.176.0.146 cleanup }}} == Compact == Initiates an immediate table compaction. {{{ bin/nodeprobe -host 10.176.0.146 compact }}}
