Storm Tutorial

Apache Storm becomes Top-Level Project

Storm System

Process streams of data

Streams and Tuples

Storm Basics

Example Code

builder.setSpout("spout", new RandomSentenceSpout(), 5);
builder.setBolt("split", new SplitSentence(), 8).shuffleGrouping("spout"); 

Topology

Graph of computation

Two types of nodes

Master and Worker Node

Master : Nimbus

Worker : Supervisor

Zookeeper

maintains State

Storm UI

Components to run Storm

To run storm on local machine download storm and zookeeper

Code from Storm Starter Word Count Topology

TopologyBuilder builder = new TopologyBuilder();

builder.setSpout("spout", new RandomSentenceSpout(), 5);

builder.setBolt("split", new SplitSentence(), 8).shuffleGrouping("spout");
builder.setBolt("count", new WordCount(), 12).fieldsGrouping("split", new Fields("word"));

Topology Builder

Set Spout method

Set Bolt method

Stream Grouping

This material will be updated