You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 34 Next »

Quickly Launch A Hama Cluster In Cloud Using Whirr

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/incubator/whirr/whirr-0.6.0-incubating/whirr-0.6.0-incubating.tar.gz
% tar zxf whirr-0.6.0-incubating.tar.gz; cd whirr-0.6.0-incubating

% 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

Upon success you should see imok echoed to the console, indicating that ZooKeeper is running.

You can shut down the cluster with

% bin/whirr destroy-cluster --config recipes/hama-ec2.properties

The various options are explained in more detail in the Whirr website

  • No labels