intra-mart Accel Platform / Cassandra Administrator Guide

Version 8 2014-04-01

«  9. Cassandra Operations   ::   Contents   ::   11. Cassandra Reference Information  »

10. Cassandra Version Upgrade

In this section the method of version upgrade of Cassandra will be introduced.

Note

Since several defects (defect such as data is damaged during operation and restart fails) have been corrected on Cassandra1.1.12, it is recommended to upgrade the version if you are already operating with Cassandra1.1.4.
We have verified the operations of Cassandra1.1.12 on intra-mart Accel Platform that was released as 2013 Winter(Felicia) or before too.

10.1. Version Upgrade Procedures

In case version upgrade is to be made from Cassandra1.1.4 to Cassandra1.1.12, following procedures would be necessary.
It is recommended to obtain Snapshot before you execute version upgrade.
  1. Please start Cassandra1.1.4.

  2. Acceptance of write operations on Cassandra1.1.4 should be stopped by the drain of nodetool command.

    • In case of Windows, please start the Command Prompt, and execute the command below.

      %CASSANDRA_HOME%/bin/nodetool drain
      
    • In case of Linux, please execute the command below.

      # /usr/local/cassandra/bin/nodetool drain
      
  3. [DRAINED] will be displayed on Cassandra under operation, and Cassandra stops.

  4. [data_file_directories] property in the <%CASSANDRA_HOME%/conf/cassandra.yaml> file of Cassandra1.1.12 should be set to the same directory with Cassandra1.1.4.

    data_file_directories Setting Example(Windows)

    data_file_directories:
     - C:/cassandra/data
    

    Warning

    In case commitlog_directory and saved_caches_directory of Cassandra1.1.12 are made the same as Cassandra1.1.4, data mismatch might occur. Please set another directory for commitlog_directory and saved_caches_directory.
  5. Please start Cassandra1.1.12, and rebuild the data by upgradesstables of nodetool command.

    • In case of Windows, please start the Command Prompt, and execute the command below.

      %CASSANDRA_HOME%/bin/nodetool upgradesstables
      
    • In case of Linux, please execute the command below.

      # /usr/local/cassandra/bin/nodetool upgradesstables
      
  6. Version upgrade procedures are completed if the rebuild of Cassandra has been successfully completed.

Note

«  9. Cassandra Operations   ::   Contents   ::   11. Cassandra Reference Information  »