This page outlines how to set up a Storm project for development. The steps are:
Follow along to see how to set up the storm-starter project in Eclipse.
You‘ll need the Storm jars on your classpath to develop Storm topologies. Using Maven is highly recommended. Here's an example of how to setup your pom.xml for a Storm project. If you don’t want to use Maven, you can include the jars from the Storm release on your classpath.
To set up the classpath in Eclipse, create a new Java project, include src/jvm/
as a source path, and make sure all the jars in lib/
and lib/dev/
are in the Referenced Libraries
section of the project.
If you implement spouts or bolts in languages other than Java, then those implementations should be under the multilang/resources/
directory of the project. For Storm to find these files in local mode, the resources/
dir needs to be on the classpath. You can do this in Eclipse by adding multilang/
as a source folder. You may also need to add multilang/resources as a source directory.
For more information on writing topologies in other languages, see Using non-JVM languages with Storm.
To test that everything is working in Eclipse, you should now be able to Run
the WordCountTopology.java
file. You will see messages being emitted at the console for 10 seconds.