Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

id1262020290

...

id1262020301

...

id1262020300

Teamwork Cloud no longer supports Apache Cassandra 3.x, therefore before upgrading Teamwork Cloud, you

...

need to upgrade Casandra to

...

version 4.1.

Note
titleBefore upgrading
  • Make sure

...

  • that all the nodes are ready.
  • Create a snapshot of your data for backup.
  • Upgrade sstables by running the

...

  • command nodetool

...

  • upgradesstables on each node.
  • For the large databases, run

...

  • the nohup nodetool upgradesstables &

...

  •  command to perform the upgrade tasks in the background.


To upgrade Cassandra


  1. IMPORTANT! Flush memtables to the disk by executing the following command:

    Code Block
    languagebash
    themeDJango
    linenumberstrue
    nodetool drain
  2. Shut down the

...

  1. Cassandra node.

  2. Backup the Cassandra configuration file at: /etc/cassandra/default.conf/cassandra.yaml
  3. Make a note of the existing cluster name and token count with the following command:

    Code Block
    languagebash
    themeDJango
    linenumberstrue
    grep -E 'num_tokens:|cluster_name:' cassandra.yaml
  4. Uninstall/remove Cassandra 3.x (example with yum package manager)

    Code Block
    languagebash
    themeDJango
    linenumberstrue
    sudo yum remove -y cassandra
  5. Install Cassandra 4.x. for installation instructions, see Installing Cassandra on Linux

...

  1.  or Installing Cassandra on Windows.
  2. Configure the 4.x node to point to the appropriate data files in

...

  1. the /etc/cassandra/default.conf/cassandra.yaml

...

  1.  settings as shown in the example below.

    Code Block
    languagebash
    titleExample
    data_file_directories:
    - /data/data
    commitlog_directory: /logs/commitlog
    hints_directory: /data/hints
    saved_caches_directory: /data/saved_caches
  2. Check the cluster name and token count

...

  1. in cassandra.yaml.

...

  1.  If needed, replace the default values with the values set in 3.x. The example below shows the default values for a Cassandra 4.x installation. 

    Code Block
    languagebash
    titleExample
    cluster_name: 'Test Cluster'
    num_tokens: 16
    Note
    titleCassandra 4 Configuration

    The cluster name and token count must match those values set in Cassandra 3.x.

  2. Start the

...

  1. Cassandra 4.

...

  1. x node.
  2. Check the log files for errors.
  3. After the upgrade is complete, perform the required post-installation configuration changes. For more information,

...

...

...


Additional resources

For more information about upgrading Apache Cassandra, see https://www.datastax.com/learn/whats-new-for-cassandra-4/migrating-cassandra-4x.