如何在Intellij IDEA中构建和运行Storm拓扑 [英] How to build and Run Storm Topology within Intellij IDEA

查看:1467
本文介绍了如何在Intellij IDEA中构建和运行Storm拓扑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照Storm Starter说明并在IntelliJ中导入了Twitter Storm。为了测试我编辑了 ExclaimationToplogy 并使用了以下Maven命令来构建和运行它:

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



<但是我更感兴趣的是在IDE中而不是从命令行构建和运行。我需要采取什么行动?

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

谢谢

推荐答案


  1. 按照storm-starter中的步骤进行操作:在IntelliJ IDEA中使用storm-starter

  2. 打开Maven的 pom.xml 文件并删除 < scope>提供< / scope> 来自风暴依赖的行。这使IntelliJ能够在构建时编译风暴依赖。

  3. 转到 / src / jvm / storm / starter / ,右键单击ExclamationTopology文件和运行'ExclamationTop .... main()'

  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()'

这篇关于如何在Intellij IDEA中构建和运行Storm拓扑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆