Hama on Clouds

This document describes how to deploy Hama clusters on Clouds e.g., EC2, Rackspace using Whirr.

Deploy a Hama cluster on EC2

The following commands install Whirr and start a 5 node Hama cluster on Amazon EC2 in 5 minutes or less.

  % curl -O http://www.apache.org/dist/whirr/whirr-0.x.0/whirr-0.x.0.tar.gz
  % tar zxf whirr-0.x.0.tar.gz; cd whirr-0.x.0

  % export AWS_ACCESS_KEY_ID=YOUR_ID
  % export AWS_SECRET_ACCESS_KEY=YOUR_SECKEY
  % ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa_whirr

  % bin/whirr launch-cluster --config recipes/hama-ec2.properties --private-key-file ~/.ssh/id_rsa_whirr

Execute Hama Examples

  % cd /usr/local/hama-0.x.0
  % bin/hama jar hama-examples-x.x.x.jar [args]