How to rename keyspace in Cassandra?
How do you rename a live Cassandra keyspace through the cassandra-cli? Pre开发者_如何学Govious versions had an option in cassandra-cli ("rename keyspace"). However, that option has been dropped in recent releases.
Renaming keyspaces (and column families) is no longer supported, since it was prone to race conditions. See https://issues.apache.org/jira/browse/CASSANDRA-1585.
精彩评论