在 cassandra 1.2 中重命名键空间和列族 [英] rename keyspace and columnfamily in cassandra 1.2

查看:26
本文介绍了在 cassandra 1.2 中重命名键空间和列族的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 cassandra 1.2 中重命名键空间和列族?我知道不再支持 cassandra-cli 重命名 api - 如何在 Cassandra 中重命名键空间.也许CQL3中有一些api?或者一些用于创建新列族并处理从旧列族到新列族的所有数据的 api?

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?

推荐答案

重命名在内部被禁用,而不仅仅是在 thrift API 中.所以也没有 CQL 命令来做这件事.

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

这篇关于在 cassandra 1.2 中重命名键空间和列族的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆