Skip to content

Instantly share code, notes, and snippets.

@mmm
Created June 27, 2013 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmm/5878432 to your computer and use it in GitHub Desktop.
Save mmm/5878432 to your computer and use it in GitHub Desktop.
some simple juju commands to deploy hadoop and ganglia
#!/bin/bash
# hadoop
juju deploy hadoop hadoop-master
juju deploy hadoop hadoop-slave -n12
juju add-relation hadoop-master:namenode hadoop-slave:datanode
juju add-relation hadoop-master:jobtracker hadoop-slave:tasktracker
# instrument hadoop-slave
juju deploy ganglia-node
juju add-relation hadoop-slave ganglia-node
# ganglia
juju deploy ganglia
juju add-relation ganglia ganglia-node
# watch it happen
juju expose ganglia
juju expose hadoop-master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment