Skip to content

Managing topologies

David edited this page Jul 30, 2013 · 3 revisions

How to run a topology

Once you have a package with your project that contains all the topology defined, you can run it using storm submitter process.

./storm jar /home/user1/storm-primenumberexample/target/storm-primenumber-test-1.0-SNAPSHOT.jar com.geekcap.storm.PrimeNumberTopology mytopologyname1

In this example, the absolute path to the jar package is specified, then the main class which in this case is the PrimeNumberTopology class. Finally, a name to the topology instance has to be specified.

How to kill a topology

To stop a topology just kill it with command storm kill. Later on, you can create it again with command storm jar.

./storm kill mytopologyname1

Clone this wiki locally