murari.rameshbabu_114828 avatar image
murari.rameshbabu_114828 asked smadhavan edited

How do we upgrade Cassandra from 3.0.9 to 3.11.10?

Need steps to upgrade apache Cassandra version from 3.0.9 to 3.11.10

10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image
Erick Ramirez answered smadhavan commented

The high level steps for upgrading from Cassandra 3.0 to 3.11 are:

  1. Backup the data and configuration files on all nodes in the cluster. Make sure that copies are saved off-server.
  2. Review the special instructions which apply between the version installed on the cluster and target upgrade version in NEWS.txt.
  3. Perform the pre-requisite steps identified in the previous step.
  4. Perform an interim binary upgrade to the latest minor version of C* 3.0.
  5. Review and edit the configuration files as appropriate after the interim upgrade.
  6. Perform a binary upgrade to the target C* 3.11 version.
  7. Edit the new C* 3.11 configuration files and migrate previous configuration as appropriate.
  8. Start the nodes and upgrade the sstables.


Due to a known issue that has potential for data corruption leading to data loss (CASSANDRA-16735), DO NOT INSTALL the following versions:

  • Apache Cassandra 3.0.23, 3.0.24
  • Apache Cassandra 3.11.9, 3.11.10

For details, see Jordan West's blog post at the Apache Cassandra website.

C* 3.0 upgrade

To perform a minor patch upgrade, you will need to specify the target version. For RHEL/CentOS systems:

$ sudo yum install cassandra-3.0.25-1

For Ubuntu/Debian systems:

$ sudo apt-get install cassandra=3.0.25

C* 3.11 upgrade

In order to install a newer major version of Cassandra, you will need to update the repository/sources on each node. See the Cassandra installation document for details.

For RHEL/CentOS systems:

$ sudo yum install cassandra-3.11.11-1

For Ubuntu/Debian systems:

$ sudo apt-get install cassandra=3.11.11

Other recommendations

The latest versions of Cassandra 3.0 and 3.11 contain the same fixes and for the most part the same features. Unless there is a specific C* 3.11 feature you require, it is not necessary to upgrade to C* 3.11.

It is more important to upgrade to C* 3.0.25 since C* 3.0.9 is very old (released in September 2016).

Thoroughly review the instructions in NEWS.txt and make sure you perform all the necessary steps to avoid running into issues.

Rehearse the upgrade in a non-production environment multiple times so you get familiar with all the necessary steps and identify issues before attempting it in production. Cheers!

3 comments Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

murari.rameshbabu_114828 avatar image murari.rameshbabu_114828 commented ·

From 3.0.9 to 4.0.1, which version need to install for upgrade

0 Likes 0 ·
Erick Ramirez avatar image Erick Ramirez ♦♦ murari.rameshbabu_114828 commented ·

If your goal is to upgrade to Cassandra 4.0.1 then there is no need to upgrade to C* 3.11. The upgrade path is C* 3.0.9 to 3.0.latest to 4.0.1. Cheers!

1 Like 1 ·
smadhavan avatar image smadhavan ♦ Erick Ramirez ♦♦ commented ·

This is good info @Erick Ramirez that we can directly upgrade from 3.0.latest to 4.0.latest!

0 Likes 0 ·
smadhavan avatar image
smadhavan answered smadhavan edited

@murari.rameshbabu_114828 , please be advised that latest version of Open Source Apache Cassandra® today is 4.0.1. We recommend upgrading in this sequence, 3.0.9 -> 3.0.latest -> 3.11.latest -> 4.0.1. In the 3.x series, the latest version is standing today at 3.11.11. Please refer to Downloads documentation page for additional details.

For general update instructions, you could refer to this documentation, but please make sure to use the appropriate OSS Apache Cassandra® version. Be sure to also read the upgrade related instructions on the official GitHub repository to know about version-specific items.

Alternatively, you could leverage DataStax Luna (this website has rich details about the program) that offers a limited time free-trial consultation to get 24/7 support for Open Source Apache Cassandra® with up to 15 tickets per year. You could register for the same here at website/portal.

10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.