将Cassandra 2.0.8升级到2.1.0 [英] Upgrading Cassandra 2.0.8 to 2.1.0
本文介绍了将Cassandra 2.0.8升级到2.1.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的cassandra群集中有8个节点。现在我已将集群从cassandra 2.0.8升级到cassandra 2.1.0的发行版。
I have 8 nodes in my cassandra cluster. Now I have upgraded cluster from cassandra 2.0.8 to release version of cassandra 2.1.0.
我如何将cassandra升级到2.1.0?
how can i upgrading cassandra to 2.1.0?
推荐答案
首先检查您的升级兼容性:
可以从cassandra-2.0.7或更高版本升级2.1版的Cassandra升级。
First check your upgrade compatibility: Cassandra upgrade for 2.1 version can be upgrade from cassandra-2.0.7 or later version.
步骤:
- 在单个节点上执行nodetool消耗
- 备份cassandra.yaml文件
- 关闭节点
- 要安装rpm,请先卸载dsc和cassandra rpm
- 安装新版本的cassandra
- 对新cassandra.yaml文件中的所有更改都与旧yaml文件中一样
- 如果JMX较早启用了安全性,请在cassandra-env.sh文件中做所需的更改
- 以新版本启动节点
- 在节点上运行nodetool upgradesstables
- 在所有节点上一个接一个地
- Do nodetool drain on a single node
- Take backup of cassandra.yaml file
- Shutdown the node
- For rpm install first uninstall dsc and cassandra rpm
- Install new version of cassandra
- Do all the change in new cassandra.yaml file as in old yaml file
- If JMX security was enable earlier the do required changes in cassandra-env.sh file
- Start the node with new version
- Run nodetool upgradesstables on the node
- Follow the same procedure on all nodes one by one
为了安全起见,您可以先拍摄快照。
Before doing all that for your safe side you can take snashots first.
这篇关于将Cassandra 2.0.8升级到2.1.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文