Clear Apache Storm cluster remotely

My bash scripts to clear Storm and Zookeeper cluster remotely by ssh.

Main idea:

Connect to every zookeeper server by ssh and stop zookeeper, then delete data folder. Then connect to every Storm node by ssh, kill Storm processes and delete data folder. Connect to zookeeper servers again, start them. Connect to Storm nodes again, start them.

cleanCluster.sh – main script

cleanCluster.sh is a main script to run. zkClean.sh and stormClean.sh are dependants, they are called from cleanCluster.sh

 zkClean.sh Рdependent script

 stormClean.sh Рdependent script

 

 

Leave a Reply

Your email address will not be published.