|
|
|||||
Strata Gems: Whirr makes Hadoop and Cassandra a snapGet control over cloud resourcesWe're publishing a new Strata Gem each day all the way through to December 24. Yesterday's Gem: DIY personal sensing and automation.
Whirr is one such tool: a simple utility and a Java API for running cloud services. It presents a uniform interface to cloud providers, so you don't have to know each service's API in order to negotiate their peculiarities. Furthermore, Whirr abstracts away the repetitive bits of setting up services such as Hadoop or Cassandra. Whirr's command-line tool can be used to bring up clusters in the cloud. Bringing up a Hadoop cluster is as easy as this one-liner:
When the cluster has launched, a script (~/.whirr/myhadoopcluster/hadoop-proxy.sh) is created, which will set up a secure tunnel to the remote cluster, letting the user execute regular Hadoop commands from their own machine. Whirr's service-name and instance-templates parameters
are the key to running different services. The instance templates
are a concise notation for specifying the contents of a cluster, and are
defined on a per-service basis. The Hadoop example
above, Services currently supported by Whirr include:
Adding new services involves providing initialization scripts, and implementing a small amount of Java code. Whirr is open source, currently hosted as an Apache Incubator project, and development is being led by Cloudera engineers.
|
|||||
|
|||||