Dream to Learn is shutting down...

We are very sorry to say that Dream to Learn will be shutting down as of December 28th, 2019. If you have content that you wish to keep, you should make a copy of it before that date.


doc header

upgrading Apache cassandra

(these are raw notes only)

cd /opt/cassandra

wget http://mirrors.ircam.fr/pub/apache/cassandra/1.2.15/apache-cassandra-1.2.15-bin.tar.gz
tar -zxf apache-cassandra-1.2.15-bin.tar.gz 

copy existing version cassandra.yaml:

/opt/cassandra/apache-cassandra-1.2.15/conf$ cp cassandra.yaml cassandra.yaml-orig.1.2.15

copy in current prod cassandra.yaml:

/opt/cassandra/apache-cassandra-1.2.15/conf$ cp /opt/cassandra/apache-cassandra/conf/cassandra.yaml .

copy in current prod rackdc:

/opt/cassandra/apache-cassandra-1.2.15/conf$ cp /opt/cassandra/apache-cassandra/conf/cassandra-rackdc.properties .


diff the cassandra.yaml files and merge any differences into cassandra.yaml.

diff cassandra.yaml cassandra.yaml-orig.1.2.15


take servers out of rotation and stop cassandra.
- you don't need to stop the DTL service, just leave out of rotation

to find cassandra PID:
ps auxw | grep snappy 

 

make a copy of commitlog dir

/opt/cassandra$ cp -a commitlog commitlog.1.2.8

make a copy of the cassandra dir

/mnt$ sudo cp -a cassandra cassandra.1.2.8


remove apache-cassandra symlink
ubuntu@ip-10-0-0-9:/opt/cassandra$ rm apache-cassandra


create new symlink
ubuntu@ip-10-0-0-9:/opt/cassandra$ ln -s apache-cassandra-1.2.15 apache-cassandra

copy cassandra.in.sh to 
/opt/cassandra 
(if not already present)

and make sure ends with
MAX_HEAP_SIZE="8G"
HEAP_NEWSIZE="600M"


start 'er up:

/opt/cassandra$ ./apache-cassandra/bin/cassandra

 


reboot machine to make sure it survives a reboot.

Interested in more content by this author?

loading, please wait...

About this document

devops doc describing how to upgrade Apache cassandra

Created: February 11, 2014

You might also like