Skip to content

doytsujin/storm-vagrant-distributed-setup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Procedure to create a distributed Storm cluster(3 nodes) using Vagrant


0. Download Storm(http://www.apache.org/dyn/closer.lua/storm/apache-storm-1.0.2/apache-storm-1.0.2.tar.gz) and Zookeeper(http://ftp.wayne.edu/apache/zookeeper/current/zookeeper-3.4.9.tar.gz)
1. Setup Vagrant to create 3 VMs
2. Setup Zookeeper on the 3 machines
3. Setup Storm on the 3 machines
4. Start ZK + Storm

1. Vagrant


- Vagrantfile describes the setting up of 3 machines with a private network
- Use the command 'vagrant up' in this directory to start the VMs
- Use 'vagrant ssh machine_name' to ssh into the respective VMs described in the file Vagrantfile

2. Steps for setting up a multi-node Zookeeper ensemble [Check zoo.cfg included in this repo]


- Download the Zookeeper release, untar zookeeper on each of the VMs and setup a data directory called ~/zkData and other params in conf/zoo.cfg , setup 'server.1/2/3' with IPs of the Vagrant VMs
- Create new dataDir in the location mentioned in zoo.cfg
- echo 1/2/3 to the file dataDir/myid on respective VMs
- Start zookeeper( sudo zkServer.sh start ) on all VMs and test if it is working

Reference

3. Steps for multi-node Storm setup [Check storm.yaml included in this repo]


- Download Storm release, untar storm folder at ~
- Create data dir ~/stormData
- Update storm.yaml
a. Update ZK servers with the 3 IPs of the VMs
b. Update Nimbus seeds(hosts) with the master server IP
c. Update storm dir with ~/stormData
- Run 'bin/storm nimbus' on master, 'bin/storm supervisor' on workers and 'bin/storm ui' on master
- Access UI through http://192.168.33.10:8080 on Windows/OSX host

Reference

About

Storm production cluster setup using Vagrant

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published