You can buy this project and download/modify it how often you want.
clear.sh hadoop namenode -format run_group_test.sh