Creating a "Hello World" topology

The "Hello World" topology, as with all "Hello World" applications, is of no real use to anyone, except to illustrate some really basic concepts. The "Hello World" topology will show how to create a Storm project including a simple spout and bolt, build it, and execute it in the local cluster mode.

How to do it…

  1. Create a new project folder and initialize your Git repository.
    mkdir HelloWorld
    cd HelloWorld
    git init
    
  2. We must then create the Maven project file as follows:
    vim pom.xml
    
  3. Using vim, or any other text editor, you need to create the basic XML tags and project metadata for the "Hello World" project.
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ...

Get Storm Real-time Processing Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.