/docker-storm

A Docker project to bring up a local Storm cluster.

Primary LanguageShell

docker-storm

This is a Docker project to bring up a local storm cluster. In addition, the Pipework project is used to connect containers to each other.

Installation

Install Docker

If you're running Ubuntu, use the instructions for installing Docker on Linux.

If you're not on a Ubuntu host, use Vagrant to spin up a Ubuntu virtual machine with Docker installed.

Then, login to the virtual machine:

$ vagrant ssh

Install dependencies

Once you're on a Ubuntu machine, install the following dependencies:

$ sudo apt-get install -y git make 

Running

Clone repository

$ git clone https://github.com/deinspanjer/docker-storm.git
$ cd docker-storm
$ make
$ make storm-container

Launch cluster

$ make start-cluster

Test cluster

$ make test-cluster

Tear down cluster

$ make stop-cluster

Troubleshooting

Spinning up Docker containers consumes memory. If the memory allocated to your Ubuntu [virtual] machine is not adaquate, make start-cluster will fail with something like:

runtime: panic before malloc heap initialized
fatal error: runtime: cannot allocate heap metadata