How to build and Run Storm Topology within Intellij IDEA

后端 未结 2 947
暗喜
暗喜 2021-02-04 18:22

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

相关标签:
2条回答
  • 2021-02-04 19:01
    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()'
    0 讨论(0)
  • 2021-02-04 19:05

    From within IntelliJ, if you get Clojure related compiler errors involving LocalCluster then .... do a mvn clean install -DskipTests from the command line on the same project first. Then do a 'Rebuild Project' from within IntelliJ. Life is full of mysteries :-).

    You need to also ensure that the storm-core is not in provided scope for storm-starter.

    0 讨论(0)
提交回复
热议问题