Database Reference
In-Depth Information
3
hadoop-datanode
\
+hadoop-tasktracker
\
+hbase-regionserver
# We're going to deploy the cluster to Amazon EC2
whirr.provider
=
aws-ec2
# The identity and credential mean different things
# depending on the provider you choose.
# Because we're using EC2, we need to enter our
# Amazon access key ID and secret access key;
# these are easily available from your provider.
whirr.identity
=
<your identity here>
whirr.credential
=
<your key here>
# The credentials we'll use to access the cluster.
# In this case, Whirr will create a user named field_guide_user
# on each of the machines it spins up and
# we'll use our ssh public key to connect as that user.
whirr.cluster-user
=
field_guide_user
whirr.private-key-file
=
${
sys
:
user
.home
}
/.ssh/id_rsa
whirr.public-key-file
=
${
sys
:
user
.home
}
/.ssh/id_rsa
We
're now ready to deploy our cluster.
# In order to do so we simply run whirr with the
# "launch cluster" argument and pass it our recipe:
$ whirr launch-cluster --config field_guide.properties
Once we'
re
done
done
with the cluster and we want to tear it down
# we run a similar command,
# this time passing the aptly named "destroy-cluster" argument:
$
whirr destroy-cluster --config field_guide.properties