Best practices on upgrading cassandra

柔情痞子 提交于 2019-12-02 10:11:04

I'm guessing you are using OSS version. Default location for data is /var/lib/cassandra and you can backup it if you wan't. Procedure for upgrade is simple:

  1. run nodetool drain
  2. stop cassandra
  3. save your cassandra.yaml
  4. remove old and install new version
  5. update new cassandra.yaml with your settings
  6. start cassandra
  7. run nodetool ugradesstables

This should leave you with your node running the new version of cassandra with all your schema and data in it. Be careful if you are upgrading past 2.1 because 2.2 and up require java8. Everything else is the same.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!