Setting up a single node Apache Storm cluster
Lets walk through the steps required to run a quick single node cluster . Having single node dev cluster will help in testing out storm topologies.
- Java 1.7 +
- Python 2.7 +
Download Apache Storm
The below steps can be used on Linux or OS X.
Download storm distribution from here http://storm.apache.org/downloads.html
tar zxvf apache-storm-0.9.3.tar.gz
Start dev zookeeper
If you already have zookeeper installed on your machine you can use that for storm zookeeper or you can start a dev zookeeper instance .
Start Storm UI
you can access Storm UI from http://localhost:8080
This will show the cluster summary with 1 supervisor and 4 worker slots.
Running a Topology
Storm ships with example topologies. Below is the command to run wordcount topology
bin/storm jar examples/storm-starter/storm-starter-topologies-0.10.0-SNAPSHOT.jar storm.starter.WordCountTopology wordcount
open storm UI page. Under topology you should see “wordcount” topology listed.
Clicking on wordcount will take you to detailed topology page which shows topology activity. You should see emitted , transferred numbers going up.