Brooklyn MapR Roll-out
This project contains Brooklyn entities for the components of a MapR M3 system, and a sample application which deploys it to Amazon.
This has been rev-locked to Brooklyn 0.4.0-M2 branch.
At the moment you must
git clone https://github.com/brooklyncentral/brooklyn
git checkout 0.4.0-M2 and
mvn clean install brooklyn,
and use the binary which is created by this process (in
To compile brooklyn-mapr, simply
mvn clean install in the project root.
To run it, either:
Download and install the
brooklynCLI tool from http://brooklyncentral.github.com/ and run in the project root:
export BROOKLYN_CLASSPATH=target/brooklyn-mapr-0.0.1-SNAPSHOT.jar brooklyn launch -a io.cloudsoft.mapr.MyM3App -l aws-ec2:us-east-1
Grab all dependencies (using maven, or in your favourite IDE) and run the static
After about 20 minutes, it should print out the URL of the MapR master node and the Brooklyn console.
You must manually accept the license in MapR (credentials defined in MyM3App), and then manually inform Brooklyn you have done so (effector setLicenseApproved on master), then the cluster will continue to set up (another 2 minutes or so).
Once fully booted, you can resize (scale out) the worker cluster, stop nodes, and see a few sensors. As an exercise to the reader, add new sensors with the metrics you care about, and perhaps add a policy to automatically scale out. (See other Brooklyn examples for an illustration.)
In both cases you'll need AWS credentials in
Most other clouds should work too, with minor variations to the code (in particular the disk setup in MyM3App), as will fixed IP machines (bare-metal/byon). MaaS clouds (metal-as-a-service) are in development, over at jclouds.org.
This software is (c) 2012 Cloudsoft Corporation, released as open source under the Apache License v2.0.
Any questions drop a line to firstname.lastname@example.org !