Skip to content

Instantly share code, notes, and snippets.

@spmallette
Created January 5, 2013 21:53
Show Gist options
  • Save spmallette/4463879 to your computer and use it in GitHub Desktop.
Save spmallette/4463879 to your computer and use it in GitHub Desktop.
two shell lines to restart a cassandra cluster
pssh -i -h hosts.txt ps aux | grep cassandra | awk '{ print $2 }' |xargs sudo kill
pssh -i -h hosts.txt sudo /usr/local/apache-cassandra-1.1.2/bin/cassandra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment