Created
October 20, 2014 03:53
-
-
Save jayunit100/d03f47dcdd21b0fff0dd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
create() { | |
echo "\$num_instances = $1" > config.rb | |
vagrant up | |
echo "nodes..." | |
nodes=(bigtop1) | |
echo "hadoop head node" | |
hadoop_head_node="bigtop1.docker" | |
echo "............................................." | |
echo "/vagrant/provision.sh bigtop1.docker" |vagrant ssh bigtop1 | |
echo "........" | |
bigtop-puppet bigtop1 | |
echo "now testing ssh ..." | |
for ((i=1 ; i<${#nodes[*]} ; i++)); do | |
( | |
echo "ls /" |vagrant ssh bigtop1 | |
bigtop-puppet ${nodes[$i]} | |
) & | |
done | |
wait | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment