Created
January 5, 2013 21:53
-
-
Save spmallette/4463879 to your computer and use it in GitHub Desktop.
two shell lines to restart a cassandra cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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