This procedure shows how to upgrade a cluster of Ubuntu 11.10 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 the old packages and dependencies on them.
sudo apt-get remove dsc cassandra sudo apt-get autoremove
This action shuts down Cassandra on the node.
Add the DataStax repository to the /etc/apt/sources.list.
deb http://<username>:<password>@debian.datastax.com/enterprise stable main
Get the <username> and <password> from your DataStax registration confirmation email. If you don’t have the email, register on the DataStax web site.
Upgrade the node.
sudo apt-get update sudo apt-get install dse-full
If the prompt appears informing you of the disk space to be used, type Y to continue.
Configure the upgraded node as described in the next section.
To configure the upgraded node