This procedure shows how to upgrade a cluster of RHEL 6.1 nodes from DataStax Community 1.0.x to DataStax Enterprise 2.1.x. 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. Complete all steps on one node before starting to upgrade the next node.
To upgrade a node
Run nodetool drain to flush the commit log of the old installation:
nodetool drain –h <hostname>
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
Type y.
Configure the upgraded node as described in the next section.
To configure the upgraded node
Open the old, renamed configuration file.
vi /etc/cassandra/default.conf/cassandra.yaml.rpmsave
Open the new configuration file for editing.
sudo vi /etc/dse/cassandra/cassandra.yaml