This procedure shows how to upgrade a cluster of RHEL-based nodes from DataStax Community 1.0.x/1.1 to DataStax Enterprise 3.0.x on the following systems:
The installer migrates the data from the old to the new version of Cassandra automatically.
Perform these upgrade steps on each node in the cluster. If the cluster is a mixed workload cluster, upgrade in the order described in Order of upgrading nodes. Complete all steps on one node before starting to upgrade the next node.
To upgrade a node
Remove dependencies on the old version of the package:
rpm -e apache-cassandra1 –noscripts
The old Cassandra configuration file is renamed to cassandra.yaml.rpmsave as shown in the output of this command.
warning: /etc/cassandra/default.conf/cassandra.yaml saved as /etc/cassandra/default.conf/cassandra.yaml.rpmsave
Open the yum repository file for DataStax in /etc/yum.repos.d for editing.
sudo vi /etc/yum.repos.d/datastax.repo
Replace the contents of the file with the following lines:
[datastax] name= DataStax Repo for Apache Cassandra \ baseurl=http://<username>:<password>@rpm.datastax.com/enterprise enabled=1 gpgcheck=0
Upgrade the node.
sudo yum clean all sudo yum install dse-full
A prompt informs you of the download size and asks for confirmation to continue. For example:
Total download size: 252 M Is this ok [y/N]: y
Configure the upgraded node as described in the next section.
To configure the upgraded node
Open the old, renamed configuration file.
Open the new configuration file for editing.
sudo vi /etc/dse/cassandra/cassandra.yaml