Alter Keyspace command allows you to alter the replicaton factor, strategy name and durable writes attributes. Below the syntax for Alter KeySpace command.

Syntax:

Note:Using Alter command Keyspace Name cannot be changed in cassandra.

By default, DURABLE_WRITES value is true. If set to false, no updates will be written to the commit log.

Example:

Validate the ALTER KeySpace