nodetool bootstrap
Manages the bootstrap process for a node joining the cluster.
Synopsis
Section titled “Synopsis”nodetool [connection_options] bootstrap resumeSee connection options for connection options.
Description
Section titled “Description”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.
Subcommands
Section titled “Subcommands”| Subcommand | Description |
|---|---|
resume | Resume a previously interrupted bootstrap process |
Examples
Section titled “Examples”Resume Interrupted Bootstrap
Section titled “Resume Interrupted Bootstrap”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=falsenodetool bootstrap resumeThis 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.
When to Use
Section titled “When to Use”After Bootstrap Failure
Section titled “After Bootstrap Failure”If bootstrap was interrupted due to network issues or node failure:
# Check current bootstrap statusnodetool netstats
# After fixing the failure and starting with reset_bootstrap_progress=falsenodetool bootstrap resumeAfter Node Restart During Bootstrap
Section titled “After Node Restart During Bootstrap”When a node restarts before completing bootstrap:
# Node has restarted, resume bootstrapnodetool bootstrap resume
# Monitor progressnodetool netstatsBootstrap Process
Section titled “Bootstrap Process”Normal Bootstrap Flow
Section titled “Normal Bootstrap Flow”1. New node starts and contacts seed nodes2. Node receives cluster topology via gossip3. Token assignment determined4. Streaming begins from existing nodes5. Node receives data for its token ranges6. Bootstrap completes, node becomes UN (Up/Normal)Interrupted Bootstrap
Section titled “Interrupted Bootstrap”If bootstrap is interrupted:
- Node status shows as UJ (Up/Joining) or similar
- Data streaming incomplete
nodetool bootstrap resumestreams missing ranges and reuses ranges already recorded as available when resume is enabled
Monitoring Bootstrap
Section titled “Monitoring Bootstrap”Check Status
Section titled “Check Status”# View bootstrap/streaming statusnodetool netstats
# Check node statenodetool statusMonitor Progress
Section titled “Monitor Progress”# Watch streaming progresswatch -n 5 'nodetool netstats | head -30'Troubleshooting
Section titled “Troubleshooting”Bootstrap Won't Resume
Section titled “Bootstrap Won't Resume”# Cassandra 5.0: confirm the joining JVM has resume enabledps -ww -eo args \ | grep '[o]rg.apache.cassandra.service.CassandraDaemon' \ | grep -- '-Dcassandra.reset_bootstrap_progress=false'
# Check node statenodetool info | grep "Gossip"
# Check for errorstail -100 /var/log/cassandra/system.log | grep -i bootstrapBootstrap Taking Too Long
Section titled “Bootstrap Taking Too Long”# Check streaming throughputnodetool getstreamthroughput
# Increase if needednodetool setstreamthroughput 200Bootstrap Fails Repeatedly
Section titled “Bootstrap Fails Repeatedly”# Check disk spacedf -h /var/lib/cassandra
# Check network connectivity to seed nodesnodetool status
# Review logs for specific errorsgrep -i "bootstrap\|stream" /var/log/cassandra/system.log | tail -50Best Practices
Section titled “Best Practices”Bootstrap Guidelines
- Monitor progress - Watch
nodetool netstatsduring bootstrap - Ensure resources - Sufficient disk space and network bandwidth
- One at a time - Bootstrap one node at a time
- 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
Related Commands
Section titled “Related Commands”| Command | Relationship |
|---|---|
| netstats | Monitor streaming progress |
| status | Check cluster state |
| rebuild | Rebuild from another datacenter |
| join | Join the ring |