Skip to content

Instantly share code, notes, and snippets.

@jayunit100
Created October 20, 2014 03:53
Show Gist options
  • Save jayunit100/d03f47dcdd21b0fff0dd to your computer and use it in GitHub Desktop.
Save jayunit100/d03f47dcdd21b0fff0dd to your computer and use it in GitHub Desktop.
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