Installing Apache Storm on Windows

In this blog, I will publish how to install apache storm on windows platform.

Prerequisites:

  1. Zookeeper
  2. JAVA
  3. Python
  4. Storm

–> Install zookeeper from  Zookeeper. Configure and run Zookeeper with the following commands:

cd zookeeper-3.3.6
> copy conf\zoo_sample.cfg conf\zoo.cfg
> .\bin\zkServer.cmd

Before running add/modify zoo.cfg with following properties:

tickTime=2000

initLimit=10

syncLimit=5

dataDir=C:/zookeeper-3.4.8/data

–> Install JAVA/JDK and set JAVA_HOME in environment variables as C:\Java\jdk1.8.0_73

–> Install Apache Storm from Apache Storm and set STORM_HOME to C:\apache-storm-0.9.7 following in environment variables.

–> Install python from Python. I downloaded python 2.7.13

–> Edit the PATH environment variable to include following:

%STORM_HOME%\bin;%JAVA_HOME%\bin;C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;

–> Edit PATHEXT environment variable to include .PY

–> Modify storm.yaml file to include following:

storm.zookeeper.servers:
– “127.0.0.1”

nimbus.host: “127.0.0.1”
storm.local.dir: “D:/storm/datadir/storm”
supervisor.slots.ports:
– 6700
– 6701
– 6702
– 6703

–> Go to STORM_HOME in command prompt and run following:

  1. storm nimbus
  2. storm supervisor
  3. storm ui

Go to http://localhost:8080 to verify if storm is started.

Run the following command to check if sample word count is working without any issues:

storm jar C:\apache-storm-0.9.7\examples\storm-starter\storm-starter-topologies-0.9.7.jar storm.starter.WordCountTopology WordCount -c nimbus.host=localhost

storm

Advertisements

Author: Aikansh Manchanda

I am an IT professional with 8 years of experience with JAVA/J2EE technologies and around 1.5 years experience with BigData/Hadoop.

1 thought on “Installing Apache Storm on Windows”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s