Apache Cassandra™ 2.0

The nodetool utility

A command line interface for Cassandra for managing a cluster.

Command format

  • Packaged installs: nodetool -h HOSTNAME [-p JMX_PORT ] COMMAND
  • Tarball installs: install_location/bin/nodetool -h HOSTNAME [-p JMX_PORT ] COMMAND
  • Remote Method Invocation: nodetool -h HOSTNAME [-p JMX_PORT -u JMX_USERNAME -pw JMX_PASSWORD ] COMMAND

    If a username and password for RMI authentication are set explicitly in the cassandra-env.sh file for the host, then you must specify credentials.

These nodetool commands operate on multiple nodes in a cluster. Familiarize yourself with the command options to ensure that results, which affect the entire cluster, are what you expect:

The following topics describe each nodetool command: