首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >升级cassandra

升级cassandra
EN

Stack Overflow用户
提问于 2011-01-12 14:58:20
回答 2查看 1.1K关注 0票数 1

我正在使用cassandra 0.6.8,我想将cassandra 0.6.8升级到Cassandra 0.7,这会影响我现有的数据吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-01-12 15:58:20

NEWS.txt始终涵盖升级:

升级

代码语言:javascript
复制
The Thrift API has changed in incompatible ways; see below, and refer
to http://wiki.apache.org/cassandra/ClientOptions for a list of
higher-level clients that have been updated to support the 0.7 API.

The Cassandra inter-node protocol is incompatible with 0.6.x
releases (and with 0.7 beta1), meaning you will have to bring your
cluster down prior to upgrading: you cannot mix 0.6 and 0.7 nodes.

The hints schema was changed from 0.6 to 0.7. Cassandra automatically
snapshots and then truncates the hints column family as part of 
starting up 0.7 for the first time.

Keyspace and ColumnFamily definitions are stored in the system
keyspace, rather than the configuration file.

The process to upgrade is:
1) run "nodetool drain" on _each_ 0.6 node.  When drain finishes (log
   message "Node is drained" appears), stop the process.
2) Convert your storage-conf.xml to the new cassandra.yaml using 
   "bin/config-converter".  
3) Rename any of your keyspace or column family names that do not adhere
   to the '^\w+' regex convention.
4) Start up your cluster with the 0.7 version.
5) Initialize your Keyspace and ColumnFamily definitions using 
   "bin/schematool <host> <jmxport> import".  _You only need to do 
   this to one node_.
票数 8
EN

Stack Overflow用户

发布于 2011-09-13 19:09:17

是的,它会的。在我看来,您必须手动将数据从0.6移动到0.7,方法是用java或其他编程编写一些代码。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4666116

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档