Skip to content

Instantly share code, notes, and snippets.

View markusklems's full-sized avatar

Markus Klems markusklems

View GitHub Profile
#!/bin/bash -ex
# Riak install and config script snippets
# For Ubuntu
# http://docs.basho.com/riak/latest/tutorials/installation/Installing-on-Debian-and-Ubuntu/
# 1. First you must get the signing key.
curl http://apt.basho.com/gpg/basho.apt.key | sudo apt-key add -
# 2. Then add the Basho repository to your apt sources list (and update them).
@markusklems
markusklems / install_ycsb.sh
Created December 6, 2012 22:37
install_ycsb.sh
#!/bin/bash
hosts=""
for host in $@; do
hosts="$host,$hosts"
done
#remove last character
hosts=${hosts%?}
wget https://github.com/downloads/brianfrankcooper/YCSB/ycsb-0.1.4.tar.gz
tar xfvz ycsb-0.1.4.tar.gz
@markusklems
markusklems / install_cassandra.sh
Created December 5, 2012 11:08
install_cassandra.sh
#!/bin/sh -ex
## Install Apache Cassandra and dependencies.
## The scripts are based on a combination of the DataStax ComboAMI scripts,
## the whirr cassandra scripts and my own scripts.
## By Markus Klems (2012).
## Tested with Ubuntu 11.10 (ami-cdc072a4).
################################
### NO WARRANTIES WHATSOEVER ###
################################
export DEBIAN_FRONTEND=noninteractive