This cookbook builds a single-node Druid cluster with the wikipedia example dataset. It is meant to be an example of how to use the druid cookbook to build a full cluster.
This cookbook is for Debian-based linux systems. It has been tested with Ubuntu using Vagrant as well as Amazon's AWS OpsWorks. Services are managed via upstart.
It also depends on these cookbooks:
- apt
- database
- druid
- mysql
- zookeeper
None needed. See the default recipe for attributes being set on the above cookbooks.
To set up a virtual machine using Vagrant, get Vagrant and the Chef Development Kit. Then run:
% vagrant up
% vagrant ssh
Include druid-example
in your node's run_list
:
{
"run_list": [
"recipe[druid-example::default]"
]
}
From the machine:
% cd /opt/druid/current
% ./run_example_client.sh wikipedia
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request
Copyright 2014 N3TWORK, Inc.
Licensed under Apache 2.0
Written by Yuval Oren (yuval@n3twork.com)