nodetool rebuild_view

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.

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

Synopsis

nodetool <options> rebuild_view
-- <keyspace> <table> [<materialized_view_name>] [<materialized_view_name>...]

Tarball and Installer No-Services path:

<installation_location>/resources/cassandra/bin
Connection 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 an 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

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com