rename keyspace and columnfamily in cassandra 1.2
Asked Answered
B

2

1

How to rename keyspace and columnfamily in cassandra 1.2? I know that cassandra-cli rename api is no longer supported - How to rename keyspace in Cassandra. Maybe there are some api in CQL3? Or some api for creating new columnfamily and coping all data from old to new columnfamily?

Beachcomber answered 2/4, 2013 at 8:43 Comment(0)
T
3

Renaming is disabled internally, not just within the thrift API. So there isn't a CQL command to do it either.

However, there is a manual process which is described here:

https://issues.apache.org/jira/browse/CASSANDRA-1585

Thyself answered 2/4, 2013 at 8:51 Comment(1)
Link is broken. Could you either fix, or provide the steps here?Umbles
F
3

For rename only a column family also you can follow the next instructions:

http://mail-archives.apache.org/mod_mbox/cassandra-user/201201.mbox/%[email protected]%3E

Basically is create the new CF, copy the SStables from the old column family to the one renaming the files.

Frivol answered 18/6, 2013 at 10:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.