This section includes information on upgrading between releases and from the community versions of Cassandra:
| Upgrade | Description |
|---|---|
| DSE 1.0.1 to 1.0.2 | Cassandra updated from 1.0.5 to 1.0.7. Updated Pig driver to support integer data types. This is in addition to current support for ASCII, UTF8 and long types. Exceptions are no longer thrown for bytes, UUID, and counters, but the data isn’t returned correctly. |
| Community Editions to DSE 1.0 | Guidelines for upgrading from the community project version of Apache Cassandra or DataStax Community Edition. |
The following best practices are recommended when upgrading:
Always take a snapshot before any upgrade. This allows you to rollback to the previous version if necessary. Cassandra is able to read data files created by the previous version, but the inverse is not always true.
Note
Snapshotting is fast, especially if you have JNA installed, and takes effectively zero disk space until you start compacting the live data files again.
Be sure to check https://github.com/apache/cassandra/blob/trunk/NEWS.txt for any new information on upgrading.
For a list of fixes and new features, see https://github.com/apache/cassandra/blob/trunk/CHANGES.txt
Upgrading minor releases can be done with a rolling restart, one node at a time. You do not need to bring down the whole cluster at once.
To upgrade a binary tarball installation:
On each node, download and unpack the binary tarball package from the downloads section of the DataStax website.
For detailed information, see Installing the DataStax Enterprise Tarball Distribution.
Merge your existing configuration file (cassandra.yaml) into the upgraded DSE instance and manually update it with new content.
Make sure any client drivers, such as Hector or Pycassa clients, are compatible with the new version.
Flush the commit log on the upgraded node by running nodetool drain.
Stop the old Cassandra process, then start the new binary process.
Monitor the log files for any issues.
To upgrade a Debian or RPM package installation:
On each node, download and install the package from the downloads section of the DataStax website.
For detailed information, see Installing DataStax Enterprise Packaged Releases or Tarball Distribution.
Merge your existing configuration file (cassandra.yaml) into the upgraded DSE instance and manually update it with new content.
Make sure any client drivers, such as Hector or Pycassa clients, are compatible with the new version.
Flush the commit log on the upgraded node by running nodetool drain.
Restart the Cassandra process.
Monitor the log files for any issues.