Apache Storm

Apache Storm

updated on icon Updated on Dec, 2023

language icon Language - English

person icon Corporate Bridge Consultancy Private Limited

architecture icon Apache,SQL Server,IT & Software,IT Certification

Lectures -21

Duration -1.5 hours


30-days Money-Back Guarantee

Training 5 or more people ?

Get your team access to 8,500+ top Tutorials Point courses anytime, anywhere.

Course Description

Apache Storm is a real time distributed framework for real time processing of Big Data. It allows you to perform real time analytics of wide variety of streamed data. Apache storm is written using Java and Clojure. It is designed to process vast amount of data in a fault tolerant and horizontal scalable method. Apache storm continues to be the leader in real time analytics. It is easy to install, set up and operate. Apache storm is used in many fields to deal with large data.

Benefits of Apache Storm

Here is a list of all the benefits of Apache Storm

  • Apache Storm is open source, highly scalable and user friendly
  • It is fault tolerant and flexible
  • Apache storm is reliable and it can support any programming language
  • Apache storm allows real time stream processing
  • It is very quick and processes the data very fast that is millions of tuples in per second in per node.
  • Storm provides guaranteed data processing even if any of the nodes are lost in the cluster messages
  • Storm can be used with any programming language and it is fun to use Storm

Use Cases of Apache Storm

Apache Storm is suitable in various use cases and a few are listed below

  • Stream Processing
  • Continuous Computation
  • Distributed RPC
  • Real Time Analytics
  • Online Machine Learning

Course Objectives

At the end of this course you will be able to

  • Master the fundamentals and architecture of Apache Storm
  • Understand where to Apache storm for real time analytics
  • Setup Apache storm cluster on your computer
  • Understand the basics of storm interfaces with Java and others
  • Learn about storm technology stack and groupings
  • Implement Spouts and Bolts
  • Work on projects using Apache Strom

Apache Storm Course Description

Section 1: History

Apache Storm was originally created by Nathan Marz while he was working at BackType. Nathan discovered Storm because of the cumbersome and brittle system of distributed queues and workers faced in other real time component. Storm was the first to introduce the concept of stream which is fault tolerant and reliable model. Storm is now acquired and open sourced by Twitter. In a very short period of time Apache Storm has become more popular and leading real time processing system. This chapter contains a brief introduction to Apache and explains the history of Apache Storm.

Section 2: Features

Apache Storm has a lot of good features than other real time processing system. The below mentioned are the top most features of Apache Storm

  • Simple programming model – Topology, Spouts, Bolts
  • Programming language agnostic – Clojure, java, Ruby, Python
  • Fault tolerant
  • Horizontally scalable
  • Guaranteed message processing
  • Very fast
  • Local mode

Architecture of Apache Storm

One of the main advantage of Apache Storm is its fault tolerant and no single point of failure. In this chapter a pictorial representation of the architecture of Apache Storm is given for easy understanding of the cluster design of storm. Apache storm has two types of nodes, the Nimbus which is the Master node and the Supervisor which is the worker node. The goal of nimbus is to run the storm topology and the work of the supervisor is to delegate the tasks to the worker processes. The below mentioned components are explained in detail under this chapter

  • Nimbus
  • Supervisor
  • Worker Process
  • Executor
  • Task
  • Zookeeper framework

Architecture Explanation in Detail

Storm has an architecture which helps it to process the real time data in a best possible and quickest way. It contains a monitoring tool called monit which helps the process to restart if there is any failure. Storm has an advanced topology called Trident Topology which provides a high level API like Pig. All these features are discussed in detail in this chapter.


Topology is a graph of operators and streams. Topology is a combination of Spouts and Bolts. Topology helps to define a streaming application in Storm. The node in a topology contains processing logic. The links in topology determines how the data should be run through the nodes. The process of running a topology is straightforward. Apache storm’s main objective is to run the topology as many times until the topology is killed.  The topology command is explained in detail in this lesson.

Topology Creation

The topology in Apache Storm is a thrift structure. Topology builder has simple and easy methods to create topologies. Topology Builder has a Create Topology syntax to create a new topology. The code to create a topology is given in this chapter.


Apache Storm has an advanced topology called Trident Topology. Trident has functions, filters, joins, grouping and aggregation. These components are explained in detail in this chapter. The other topics included in this chapter are listed below

  • Trident Tuples
  • Trident Spout
  • Trident Operations
  • State Maintenance
  • Distributed RPC
  • When Trident should be used
  • Example of Trident
  • Formatting the call information
  • CSV Split
  • Log Analyzer


A topology usually starts with Spouts. These are the sources of streams in a topology which are used for data creation. Spout reads tuples from a messaging framework and transfers them to one or more bolts. Tuple is a named list of values in Apache Storm.

Spout Creation

Spout will implement an “IRichSpout” interface which has the following components

  • Open – conf, context, collector
  • nextTuple – contains the signature of the nextTuple method
  • close – signature of the close component is mentioned under this topic
  • declareOutputFields – this is used to specify the output schema of the tuple
  • ack – ensures that the specific tuple is processed
  • fail – this method informs if there is any failure in the processing of the tuple
  • Fake Call Log Reader Spout – The call log contains caller number, receiver number and duration


Bolt is considered to be a node in a topology. Bolts helps to process the input stream and produce new stream. Bolts have the smallest processing logic. The output of one bolt can be used as input for another bolt.

Bolt Creation

Bolt is a component which takes a tuple as input, processes it and produces a new tuple or tuples as output. This implements “IRichBolt” interface. The operations are carried out using two classes CallLog CreaterBolt and CallLog CounterBolt. The interface in bolt has the following methods

  • prepare – conf, context and collector
  • execute – this method processes a single tuple at a time. Multiple tuples can also be processed but it produces a single output tuple as the output
  • cleanup – signature of the cleanup method is given here
  • declareOutputFields – the parameter declarer is used to declare output stream ids, output fields and others
  • Call Log Creator Bolt – this receives the call log tuple and it has caller number, receiver number and call duration. this topic gives the complete code of CallLog Creator Bolt.
  • Call log counter bolt – this method receives call and its duration as a tuple. This bolt method creates a dictionary object in the prepare method. The coding of Call log counter bolt is given in this section


A stream is an unordered sequence of tuples which is processed by the application. Apache storm reads raw stream data from one end and this data goes through a sequence of processing units which produces the output at the other end. Streams of data flows from spouts to bolts and from one bolt to another. The stream concept in Storm is discussed in this section with example.

Stream Grouping

Stream grouping helps to control the route of the tuples in a topology and helps to understand the work flow of the topology. There are four in built groupings as explained in this chapter

  • Shuffle Grouping – In this grouping equal number of tuples are distributed randomly to all the workers who are executing the bolts
  • Field Grouping – In this grouping the fields with same values are grouped together. Such field values are sent to the same worker who are executing the bolts
  • Global Grouping – Under this grouping, all the streams are grouped and sent to a single bolt usually to the bolt with the lowest ID
  • All Grouping – This grouping sends a copy of each tuple to all the bolts. This is used for join operations

Section 3: Installation Process

Apache Storm can be installed in your system using three steps

Installation of Java – The steps of java installation are listed below

  • Download JDK
  • Extract files
  • Move to opt directory
  • Set path
  • Java Alternatives
  • Commands to check whether the Java is installed

Installation of Zookeeper framework

Below mentioned are the steps to install Zookeeper framework

  • Download Zookeeper
  • Extract tar file
  • Create configuration file
  • Start Zookeeper Server
  • Start CLI
  • Stop Zookeeper Server

Installation of Apache Storm framework

  • Download Storm
  • Extract tar file
  • Open configuration file
  • Start the nimbus
  • Start the Supervisor
  • Start the UI

Target Audience for this course

This course is meant for professionals who are willing to start their career in Big data analytics using Apache storm framework. The others include Software professionals, Data scientists, ETL developers and Project managers.


What are the prerequisites for this course?

  •  Basic knowledge in Java programming and any of the Linux based systems.
  •  Basic knowledge of data processing and knowledge in Hadoop will be an added advantage.

Apache Storm


Check out the detailed breakdown of what’s inside the course

4 Lectures
  • play icon Introduction 01:56 01:56
  • play icon Description of Hadoop 04:08 04:08
  • play icon Storm Introduction 04:09 04:09
  • play icon Apache Storm History 03:44 03:44
6 Lectures
1 Lectures
5 Lectures
Java Installation
5 Lectures

Instructor Details

Corporate Bridge Consultancy Private Limited

Corporate Bridge Consultancy Private Limited

EDUCBA is a leading global provider of skill-based education addressing the needs of 1,000,000+ members across 70+ Countries. Our unique step-by-step, online learning model along with amazing 5000+ courses and 500+ Learning Paths prepared by top-notch professionals from the Industry help participants achieve their goals successfully. All our training programs are Job oriented skill-based programs demanded by the Industry. At EDUCBA, it is a matter of pride for us to make job-oriented hands-on courses available to anyone, any time and anywhere. Therefore we ensure that you can enroll 24 hours a day, seven days a week, 365 days a year. Learn at a time and place, and pace that is of your choice. Plan your study to suit your convenience and schedule.

Course Certificate

User your certification to make a career change or to advance in your current career. Salaries are among the highest in the world.

sample Tutorialspoint certificate

Our students work
with the Best

Related Video Courses

View More

Annual Membership

Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses

Subscribe now
People having fun around a laptop

Online Certifications

Master prominent technologies at full length and become a valued certified professional.

Explore Now
People having fun around a laptop

Talk to us