You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by Apache Wiki <wi...@apache.org> on 2011/06/14 23:05:56 UTC

[Cassandra Wiki] Update of "NodeTool" by DavidAllsopp

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.

The "NodeTool" page has been changed by DavidAllsopp:
http://wiki.apache.org/cassandra/NodeTool?action=diff&rev1=13&rev2=14

Comment:
Updated nodetool usage output to ouput from v0.7.4 - may need updating further if this has changed for later versions...

  
  ''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/nodetool` with no arguments produces some simple usage output.
+ Running `bin/nodetool` with no arguments produces some usage output.
  
  {{{
+ Starting NodeTool
+ Missing required option: h
- usage: java org.apache.cassandra.tools.NodeCmd -host <arg> <command>
+ usage: java org.apache.cassandra.tools.NodeCmd --host <arg> <command>
  
-  -h, -host <arg>   node hostname or ip address
+  -h,--host <arg>        node hostname or ip address
-  -p, -port <arg>   remote jmx agent port number
+  -p,--port <arg>        remote jmx agent port number
+  -pw,--password <arg>   remote jmx agent password
+  -u,--username <arg>    remote jmx agent username
  
- Available commands: ring, info, version, cleanup, compact, cfstats,
- snapshot [snapshotname], clearsnapshot, tpstats, flush, drain, repair,
- decommission, move, loadbalance, removetoken, setcachecapacity <keyspace>
- <cfname> <keycachecapacity> <rowcachecapacity>, getcompactionthreshold,
- setcompactionthreshold [minthreshold] ([maxthreshold]), streams [host]
+ Available commands:
+   ring                   - Print informations on the token ring
+   join                   - Join the ring
+   info                   - Print node informations (uptime, load, ...)
+   cfstats                - Print statistics on column families
+   clearsnapshot          - Remove all existing snapshots
+   version                - Print cassandra version
+   tpstats                - Print usage statistics of thread pools
+   drain                  - Drain the node (stop accepting writes and flush all column families)
+   decommission           - Decommission the node
+   loadbalance            - Loadbalance the node
+   compactionstats        - Print statistics on compactions
+   disablegossip          - Disable gossip (effectively marking the node dead)
+   enablegossip           - Reenable gossip
+   disablethrift          - Disable thrift server
+   enablethrift           - Reenable thrift server
+   snapshot [snapshotname] - Take a snapshot using optional name snapshotname
+   netstats [host]        - Print network information on provided host (connecting node by default)
+   move <new token>       - Move node on the token ring to a new token
+   removetoken status|force|<token> - Show status of current token removal, force completion of pending removal or remove providen token
+   flush [keyspace] [cfnames] - Flush one or more column family
+   repair [keyspace] [cfnames] - Repair one or more column family
+   cleanup [keyspace] [cfnames] - Run cleanup on one or more column family
+   compact [keyspace] [cfnames] - Force a (major) compaction on one or more column family
+   scrub [keyspace] [cfnames] - Scrub (rebuild sstables for) one or more column family
+   invalidatekeycache [keyspace] [cfnames] - Invalidate the key cache of one or more column family
+   invalidaterowcache [keyspace] [cfnames] - Invalidate the key cache of one or more column family
+   getcompactionthreshold <keyspace> <cfname> - Print min and max compaction thresholds for a given column family
+   cfhistograms <keyspace> <cfname> - Print statistic histograms for a given column family
+   setcachecapacity <keyspace> <cfname> <keycachecapacity> <rowcachecapacity> - Set the key and row cache capacities of a given column family
+   setcompactionthreshold <keyspace> <cfname> <minthreshold> <maxthreshold> - Set the min and max compaction thresholds for a given column family
  }}}
  The -host argument is required, the -port argument is optional and will default to 8080 if not supplied.