Others

nodetool abortrebuild (TODO)

Abort a currently running rebuild operation that was started on the connected node. Completes processing of active streams, but no new streams are started. The abort operation is logged with an optional reason comment.

nodetool bootstrap (TODO)

The nodetool bootstrap command can be used to monitor and manage a node's bootstrap process. If no argument is defined, the help information is displayed. If the argument resume is used, bootstrap streaming is resumed.

nodetool bootstrap resume
Node is already bootstrapped.

nodetool cleanup

Cleans up keyspaces and partition keys no longer belonging to a node.

Use this command to remove unwanted data after adding a new node to the cluster. DataStax Enterprise does not automatically remove data from nodes that lose part of their partition range to a newly added node. Run nodetool cleanup on the source node and on neighboring nodes that shared the same subrange after the new node is up and running. Failure to run this command after adding a node causes the database to include the old data to rebalance the load on that node. Running the nodetool cleanup command causes a temporary increase in disk space usage proportional to the size of your largest SSTable. Disk I/O occurs when running this command.

Optionally, this command takes a list of table names. If you do not specify a keyspace, this command cleans all keyspaces no longer belonging to a node.

nodetool <options> cleanup --  <keyspace> (<table> ...)
nodetool status
Datacenter: dc1
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address        Load       Tokens       Owns (effective)  Host ID                               Rack
UN  139.59.0.95    2.64 GiB   256          51.2%             9bcd3809-290a-42c4-892d-484dcd84146b  rack1
UN  139.59.65.151  1.28 GiB   256          48.8%             420075a7-3218-49f2-8a26-6d03cc190048  rack1
Datacenter: dc2
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address        Load       Tokens       Owns (effective)  Host ID                               Rack
UN  159.65.150.95  2.67 GiB   256          100.0%            161d8f8e-2284-4861-a538-eccd71987f28  rack1
  • 139.59.65.151 is the newly added node
nodetool cleanup
WARN  07:19:37,894 Only 43.344GiB free across all data volumes. Consider adding more capacity to your cluster or removing obsolete snapshots
nodetool status
Datacenter: dc1
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address        Load       Tokens       Owns (effective)  Host ID                               Rack
UN  139.59.0.95    1.35 GiB   256          51.2%             9bcd3809-290a-42c4-892d-484dcd84146b  rack1
UN  139.59.65.151  1.28 GiB   256          48.8%             420075a7-3218-49f2-8a26-6d03cc190048  rack1
Datacenter: dc2
===============
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address        Load       Tokens       Owns (effective)  Host ID                               Rack
UN  159.65.150.95  2.67 GiB   256          100.0%            161d8f8e-2284-4861-a538-eccd71987f28  rack1

results matching ""

    No results matching ""