Upgrades for DataStax Enterprise (DSE) 4.8.x patch releases
Review this information on upgrading DataStax Enterprise (DSE) between patch (point) releases, such as upgrading from DSE 4.8.4 to 4.8.12.
|
Read and understand these instructions before upgrading. Carefully reviewing the planning and upgrade instructions can prevent errors and data loss. |
|
TTL expiration timestamps are susceptible to the year 2038 problem.
If the TTL value is long and an expiration date that is greater than the maximum threshold of |
General recommendations
Be sure to read the DSE 4.8 release notes.
|
DataStax recommends upgrading to DSE 4.8.16. |
|
DataStax recommends backing up your data prior to any version upgrade, including logs and custom configurations. A backup provides the ability to revert and restore all the data used in the previous version if necessary. |
General restrictions and limitations during the upgrade process
Restrictions and limitations apply while a cluster is in a partially upgraded state. The cluster continues to work as though it were on the earlier version of DSE until all of the nodes in the cluster are upgraded.
-
Restrictions for all nodes during an upgrade
-
Do not enable new features.
-
Do not run
nodetool repair. -
Do not bootstrap or decommission nodes.
Failure to upgrade SSTables when required results in a significant performance impact and increased disk usage.
Upgrading is not complete until the SSTables are upgraded.
Nodes on different versions might show a schema disagreement during an upgrade.
-
-
DSE Analytics (Hadoop and Spark) upgrade restrictions
-
Do not run analytics jobs until all nodes are upgraded.
-
Kill all Spark worker processes before you stop the node and install the new version.
-
-
DSE Search (Solr) upgrade restrictions and limitations
-
Do not update schemas.
-
Do not reindex DSE Search nodes during upgrade.
-
Do not issue these types of queries during a rolling restart:
DDLorTRUNCATE.
-
-
Security upgrade restrictions
-
Do not change security credentials or permissions until after the upgrade is complete.
-
If you are not already using Kerberos, do not set up Kerberos authentication before upgrading. First upgrade the cluster, then set up Kerberos.
-
Preparing to upgrade
-
Back up your data.
DSE OpsCenter provides a Backup Service that manages enterprise-wide backup and restore operations for DSE clusters. DSE OpsCenter 6.5 or later is recommended.
-
Verify your current product version:
dse -v -
Upgrade to the latest patch release on your current version. The latest version of DSE 4.8 is 4.8.16.
-
Before upgrading, be sure that each node has adequate free disk space. The required space depends on the compaction strategy. See Disk space.
-
Familiarize yourself with the changes and features in DSE and Apache Cassandra:
-
Read DSE release notes for the upgrade version and complete all required actions. DSE release notes include required planning, components, changes and enhancements, known issues, and resolved issues.
-
General upgrading advice for any version and new features for Apache Cassandra in NEWS.txt. Be sure to read the NEWS.txt all the way back to your current version.
-
Apache Cassandra changes in CHANGES.txt.
-
DSE production-certified changes to Apache Cassandra in the DSE release notes.
-
Make sure you use a compatible driver. Depending on the driver version, you might need to recompile your client application code.
-
-
Prepare DSE Search nodes:
-
Tune the schema before you upgrade.
-
All unique key elements must be indexed in the Solr schema. To verify unique key elements, review
schema.xmlto ensure that all unique key fields must haveindexed=true. -
If you changed the schema, do a full reindex.
-
-
Back up the configuration files you use to a folder that is not in the directory where you normally run commands.
The configuration files are overwritten with default values during installation of the new version.
Upgrade steps
|
The DataStax installer automatically performs many upgrade tasks. |
-
Run
nodetool repairto ensure that data on each replica is consistent with data on other nodes. -
Upgrade order matters. Upgrade nodes in this order:
-
In multiple datacenter clusters, upgrade every node in one datacenter before upgrading another datacenter.
-
Upgrade the seed nodes within a datacenter first.
-
DSE Analytics datacenters
-
For DSE Analytics nodes using DSE Hadoop, upgrade the Job Tracker node first. Then upgrade Hadoop nodes, followed by Spark nodes.
-
-
Transactional/DSE Graph datacenters
-
DSE Search nodes or datacenters
-
With a few exceptions, the cluster continues to work as though it were on the earlier version of DSE until all of the nodes in the cluster are upgraded. Upgrade and restart the nodes one at a time. Other nodes in the cluster continue to operate at the earlier version until all nodes are upgraded.
-
-
-
Run
nodetool drainto flush the commit log of the old installation:nodetool drain -h hostnameThis step saves time when nodes start up after the upgrade, and prevents DSE Search nodes from having to reindex data.
-
Use the appropriate method to install the new product version.
-
To configure the new product version:
-
Compare your backup configuration files to the new configuration files:
-
Look for any deprecated, removed, or changed settings.
-
Be sure you are familiar with the Apache Cassandra and DSE changes and features in the new release.
-
Check for any other configuration files that you might have changed. See Default file locations for Installer-Services and package installation or Installer-No Services and tarball installations.
-
-
Merge the applicable modifications into the new version.
-
-
Verify that the upgraded datacenter names match the datacenter names in the keyspace schema definition:
nodetool status -
Review the logs for warnings, errors, and exceptions. Warnings, errors, and exceptions are frequently found in the logs when starting an upgraded node. Some of these log entries are informational to help you execute specific upgrade-related steps. If you find unexpected warnings, errors, or exceptions, contact IBM Support.
-
Repeat the upgrade and restart on each node in the cluster following the recommended upgrade order. Upgrading and restarting each node is called a rolling restart.
-
Recommended: After the new version is installed on each node, upgrade the SSTables on each node:
nodetool upgradesstablesThis is recommended for optimal performance, but it isn’t required for patch releases.
Use the
--jobsoption to set the number of SSTables that upgrade simultaneously. The default setting is2, which minimizes impact on the cluster. Set to0to use all available compaction threads. DataStax recommends running theupgradesstablescommand on one node at a time. When using racks, run the command on one rack at a time.If the SSTables are already on the current version, the
upgradesstablescommand returns immediately and no action is taken. -
If you use the DSE OpsCenter Repair Service, start the Repair Service.