How to build and Run Storm Topology within Intellij IDEA

Volatil3 picture Volatil3 · Jan 18, 2014 · Viewed 8.5k times · Source

I followed Storm Starter instructions and imported Twitter Storm in IntelliJ. For sake of testing I edited ExclaimationToplogy a bit and used following Maven command to build and run it:

mvn -f m2-pom.xml compile exec:java -Dstorm.topology=storm.starter.ExclamationTopology

But I am more interested to build and run within IDE rather than from command line. What actions do I need to perform?

Thanks

Answer

Lukas Hajdu picture Lukas Hajdu · Jan 19, 2014
  1. Follow the steps in storm-starter's: Using storm-starter with IntelliJ IDEA
  2. Open Maven's pom.xml file and remove <scope>provided</scope> line from storm dependency. This enables IntelliJ to compile storm dependency on build.
  3. Go to /src/jvm/storm/starter/, right click on ExclamationTopology file and Run 'ExclamationTop....main()'