Sst2s3 is a project mainly written in Ruby, based on the MIT license.
Copy Cassandra sstables to S3 and vice-versa
NOTE: This is beta software. It has been used to perform a successfull migration of a production 0.7.x cassandra cluster to 0.8.x, but there are no guarantees it will work in every environment.
Basic steps for migrating a cassandra node:
nodetool drain
.sst2s3
to upload sstables to S3.s32sst
to pull sstables from S3 and extract to
the current data directory.Notes:
nodetool scrub
on the new node; depends on environment.This will tarball and upload sstables to S3.
Options:
--s3-key, -s <s>: S3 Key
--s3-secret, -e <s>: S3 Secret
--s3-bucket, -b <s>: S3 Bucket+Path (eg: bucket_name/path/to/storedir)
--dir, -d <s>: Data Directory
--tmpdir, -t <s>: Directory for tempfiles (default: /tmp)
--verbose, -v: Print checkpoints when archiving
--all, -a: Backup all keyspaces
--version, -r: Print version and exit
--help, -h: Show this message
This will download the sstable tarballs from S3 and extract them to the local cassandra directory.
Options:
--s3-key, -s <s>: S3 Key
--s3-secret, -e <s>: S3 Secret
--s3-bucket, -b <s>: S3 Bucket+Path (eg: bucket_name/path/to/sstdir)
--dir, -d <s>: Data Directory
--tmpdir, -t <s>: Directory for tempfiles (default: /tmp)
--owner, -o <s>: Override owner for files
--group, -g <s>: Override group for files
--verbose, -v: Print checkpoints during extract
--all, -a: Restore all keyspaces
--version, -r: Print version and exit
--help, -h: Show this message
In no real order.
Copyright (c) 2011 Librato, Inc. See LICENSE.txt for further details.