Dockerfiles for building a storm cluster. Inspired by https://github.com/ptgoetz/storm-vagrant
The images are available directly from https://index.docker.io
##Pre-Requisites
- install fig http://www.fig.sh/install.html
##Usage
Start a cluster:
fig up
Destroy a cluster:
fig stop
Add more supervisors:
fig scale supervisor=3
##Building
rebuild.sh
##FAQ
Take a look at fig.yml:
ui:
image: wurstmeister/storm-ui:0.9.2
ports:
- "49080:8080"
This tells Docker to expose the Docker UI container's port 8080 as port 49080 on the host
If you are running docker natively you can use localhost. If you're using boot2docker, then do:
$ boot2docker ip
The VM's Host only interface IP address is: 192.168.59.103
Which returns your docker VM's IP.
So, to open storm UI, type the following in your browser:
localhost:49080
or
192.168.59.103:49080
in my case.
Since the nimbus host and port are not default, you need to specify where the nimbus host is, and what is the nimbus port number.
Following the example above, after discovering the nimbus host IP (could be localhost, could be our docker VM ip as in the case of boot2docker), run the following command:
storm jar target/your-topology-fat-jar.jar com.your.package.AndTopology topology-name -c nimbus.host=192.168.59.103 -c nimbus.thrift.port=49627