Apache Cassandra™ 2.0

repair

Repairs one or more tables.

Synopsis

nodetool <options> repair 
 ( -dc <dc_name> | --in-dc <dc_name> ) 
 ( -et <end_token> | --end-token <end_token> ) 
 ( -local | --in-local-dc )
 ( -par | --parallel )
 ( -pr | --partitioner-range )
( -st <start_token> --start-token <start_token> )   
--  <keyspace> ( <table> ... )
  • options are:
    • ( -h | --host ) <host name> | <ip address>
    • ( -p | --port ) <port number>
    • ( -pw | --password ) <password >
    • ( -u | --username ) <user name>
  • -dc, or --in-dc, followed by dc_name, or means repair the named datacenter.
  • -et, or --end-token, followed by the UUID of a token means means stop repairing a range of nodes after repairing this token.
  • -local, or --in-local-dc, means repair nodes in the same data center only.
  • -par, or --parallel, means carry out a parallel repair.
  • pr, or --partitioner-range, means repair only the first range returned by the partitioner.
  • -st, or --start-token, followed by the UUID of a token means start repairing a range of nodes at this token.
  • -- Separates an option and argument that could be mistaken for a option.
  • keyspace is the keyspace name.
  • table is one or more table names, separated by a space.

Synopsis Legend

  • Angle brackets (< >) mean not literal, a variable
  • Italics mean optional
  • The pipe (|) symbol means OR or AND/OR
  • Ellipsis (...) means repeatable
  • Orange ( and ) means not literal, indicates scope

Description

This command operates on multiple nodes in a cluster. In Cassandra 2.0.6 and later, you can restrict repair to a set of nodes. This command begins an anti-entropy node repair operation. If the -pr option is specified, only the first range returned by the partitioner for a node is repaired. This allows you to repair each node in the cluster in succession without duplicating work. If the -pr option is not specified, Cassandra repairs all replica ranges that fall within the responsibility of the node. Follow guidelines for running routine node repair.