Executing a sample Storm topology – local mode
Before we start this section, the assumption is that you have gone through the prerequisites and installed the expected components.
WordCount topology from the Storm-starter project
To understand the components described in the previous section, let's download the Storm-starter project and execute a sample topology:
The Storm-starter project can be downloaded using the following Git command:
Linux-command-Prompt $ sudo git clone git://github.com/apache/incubator-storm.git && cd incubator-storm/examples/storm-starter
Next, you need to import the project into your Eclipse workspace:
Start Eclipse.
Click on the File menu and select the Import wizard.
From the Import wizard, select Existing Maven Projects.
Select pom.xml in the Storm-starter project and specify it as
<download-folder>/starter/incubator-storm/examples/storm-starter
.Once the project has been successfully imported, the Eclipse folder structure will look like the following screenshot...