Skip to content

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

nodetool viewbuildstatus

Displays the build status of materialized views.


Terminal window
nodetool [connection_options] viewbuildstatus <keyspace> <view>
nodetool [connection_options] viewbuildstatus <keyspace.view>

See connection options for connection options.

nodetool viewbuildstatus shows the progress of a materialized view build across all nodes. When a materialized view is created, Cassandra must populate it with existing data, which can take time for large tables.


ArgumentDescription
keyspaceRequired. The keyspace containing the view
viewRequired. The materialized view name to check

The view can be specified as two separate arguments (keyspace view) or as a single dotted notation (keyspace.view).


Terminal window
nodetool viewbuildstatus my_keyspace my_view
Terminal window
nodetool viewbuildstatus my_keyspace.my_view

When the view build has finished successfully on all nodes:

my_keyspace.my_view has finished building

Sample Output (Build In Progress or Failed)

Section titled “Sample Output (Build In Progress or Failed)”

When any node has not completed the build, the command outputs a status message and a table with per-host status, then exits with an error:

my_keyspace.my_view has not finished building; node status is below.
Host Info
192.168.1.101 SUCCESS
192.168.1.102 BUILDING
192.168.1.103 SUCCESS

StatusMeaning
SUCCESSBuild complete
BUILDINGBuild in progress
STARTEDBuild initiated
FAILEDBuild failed

Terminal window
# Create view
cqlsh -e "CREATE MATERIALIZED VIEW..."
# Monitor build progress
watch nodetool viewbuildstatus my_keyspace.my_view
Terminal window
# Check if view build failed (output goes to stderr on failure)
nodetool viewbuildstatus my_keyspace my_view 2>&1 | grep FAILED

Guidelines

  1. Monitor large builds - View builds can take significant time
  2. Check all nodes - Build status varies per node
  3. Investigate failures - Check logs if build fails

CommandRelationship
compactionstatsView build shows in compaction
tablestatsView table statistics