nodetool rebuild_view

Performs a rebuild of the specified materialized views for a particular table for local data.

Performs a rebuild of the specified materialized views for a particular base table on the node on which the command is run. Use this command to rebuild materialized views after restoring SSTables or after restarting a materialized view build that was previously stopped. If no materialized views are specified, all materialized views based on the specified table are rebuilt.

Note: The rebuild_view command does not clear existing data in the materialized view.

Synopsis

install_location/bin/nodetool <options>rebuild_view 
-- <keyspace> <table> [<materialized_view_name>] [<materialized_view_name>...]
Table 1. Options
Short Long Description
-h --host Hostname or IP address.
-p --port Port number.
-pwf --password-file Password file path.
-pw --password Password.
-u --username Remote JMX agent username.
keyspace Name of keyspace.
table Name of table.
-- Separates an option from an argument that could be mistaken for a option.

Examples

Rebuild materialized views cyclist_by_age and cyclist_by_birthday_and_age on cycling keyspace and cyclist_base table

Rebuild materialized views cyclist_by_age and cyclist_by_birthday_and_age on cycling keyspace and cyclist_base table