Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

nodetool bootstrap

Manages the bootstrap process for a node joining the cluster.


Terminal window
nodetool [connection_options] bootstrap resume

See connection options for connection options.

nodetool bootstrap manages the bootstrap process when a new node joins a Cassandra cluster. Bootstrap is the process by which a new node receives data from existing nodes to take ownership of its assigned token ranges.

The resume subcommand allows resuming a previously interrupted bootstrap operation. On Cassandra 5.0, the joining node must have started with -Dcassandra.reset_bootstrap_progress=false before a normal resume can reuse ranges recorded by the earlier attempt.

Bootstrap Context

Bootstrap typically happens automatically when a new node starts. This command is primarily used to resume interrupted bootstrap operations.

Resume Reuses Existing Data

Resuming trusts the ranges that Cassandra recorded as available during the earlier attempt. Fix the stream failure first, and resume only when the joining node's data files remain intact. See the Add Node playbook for the recovery checks and clean-restart alternative.


SubcommandDescription
resumeResume a previously interrupted bootstrap process

Add the JVM property to the joining node's jvm-server.options, then start or restart Cassandra so the property takes effect:

-Dcassandra.reset_bootstrap_progress=false
Terminal window
nodetool bootstrap resume

This property is not a cassandra.yaml setting. Cassandra 4.1 and 4.0 allow resume by default; Cassandra 5.0 requires the explicit false value when previous bootstrap progress exists. The Cassandra 5.0 --force option bypasses this safety check and should not replace an explicit resume decision.


If bootstrap was interrupted due to network issues or node failure:

Terminal window
# Check current bootstrap status
nodetool netstats
# After fixing the failure and starting with reset_bootstrap_progress=false
nodetool bootstrap resume

When a node restarts before completing bootstrap:

Terminal window
# Node has restarted, resume bootstrap
nodetool bootstrap resume
# Monitor progress
nodetool netstats

1. New node starts and contacts seed nodes
2. Node receives cluster topology via gossip
3. Token assignment determined
4. Streaming begins from existing nodes
5. Node receives data for its token ranges
6. Bootstrap completes, node becomes UN (Up/Normal)

If bootstrap is interrupted:

  • Node status shows as UJ (Up/Joining) or similar
  • Data streaming incomplete
  • nodetool bootstrap resume streams missing ranges and reuses ranges already recorded as available when resume is enabled

Terminal window
# View bootstrap/streaming status
nodetool netstats
# Check node state
nodetool status
Terminal window
# Watch streaming progress
watch -n 5 'nodetool netstats | head -30'

Terminal window
# Cassandra 5.0: confirm the joining JVM has resume enabled
ps -ww -eo args \
| grep '[o]rg.apache.cassandra.service.CassandraDaemon' \
| grep -- '-Dcassandra.reset_bootstrap_progress=false'
# Check node state
nodetool info | grep "Gossip"
# Check for errors
tail -100 /var/log/cassandra/system.log | grep -i bootstrap
Terminal window
# Check streaming throughput
nodetool getstreamthroughput
# Increase if needed
nodetool setstreamthroughput 200
Terminal window
# Check disk space
df -h /var/lib/cassandra
# Check network connectivity to seed nodes
nodetool status
# Review logs for specific errors
grep -i "bootstrap\|stream" /var/log/cassandra/system.log | tail -50

Bootstrap Guidelines

  1. Monitor progress - Watch nodetool netstats during bootstrap
  2. Ensure resources - Sufficient disk space and network bandwidth
  3. One at a time - Bootstrap one node at a time
  4. Check completion - Verify node reaches UN status

Bootstrap Considerations

  • Bootstrap can take hours for large datasets
  • Network bandwidth is critical
  • Other cluster operations may be slower during bootstrap
  • Don't add multiple nodes simultaneously

CommandRelationship
netstatsMonitor streaming progress
statusCheck cluster state
rebuildRebuild from another datacenter
joinJoin the ring