Creating a new Storm project
This page outlines how to set up a Storm project for development. The steps are:
- Add Storm jars to classpath
- If using multilang, add multilang dir to classpath
Follow along to see how to set up the storm-starter project in Eclipse.
Add Storm jars to classpath
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.
storm-starter uses Leiningen for build and dependency resolution. You can install leiningen by downloading this script, placing it on your path, and making it executable. To retrieve the dependencies for Storm, simply run lein deps
in the project root.
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/
andlib/dev/
are in the Referenced Libraries
section of the project.
If using multilang, add multilang dir to classpath
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.
come from storm wiki
相关推荐
"Creating a New Application Virtualization 4.5 Database Using SQL Scripting" 这一主题主要针对那些在安装微软应用虚拟化4.5(App-V)时面临权限问题的管理员。通常,App-V服务器组件的安装需要安装者不仅具有...
Utilizing a proven Agile Enterprise Framework that encompasses governance, project and iteration management, and technical practices * Optimizing all five stages of the agile project: Envision, ...
在处理Web服务相关的Java应用程序时,可能会遇到一个名为“prefix cannot be 'null' when creating a QName”的异常。这个错误通常出现在尝试创建`QName`对象但提供的前缀为`null`的情况下。 ### 错误详情与解决...
Creating a Website The Missing Manual(4th) 英文epub 第4版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
"Creating_new_UI_controls"这个主题恰好聚焦于这一领域,特别是通过编程来实现自定义的UI元素。这篇教程可能涉及到的是如何在特定的开发环境中,如Sencha,创建和定制用户界面组件。 Sencha是一家知名的JavaScript...
By Jim Highsmith Publisher : Addison Wesley Pub Date : April 06, 2004 ISBN : 0-321-21977-5 Pages : 312
This project model is not meant to be a tool to justify creating impositions for developers, but as a tool to facilitate coordination. It is meant as a description of the project, with an overview of...
Storm Applied is a practical guide to using Apache Storm for the real-world tasks associated with processing and analyzing real-time data streams. This immediately useful book starts by building a ...
up, pearson.education.agile.project.management.creating.innovative.products.apr.2004.ebook-ddu.chm
这个"Creating Links That Open in a New Window Using Javascript.zip"的压缩包文件显然提供了一个关于如何利用JavaScript实现这一功能的教学资源。 首先,我们来讨论如何在HTML中创建一个基础的链接。一个基本的...
程序员的事业指导手册,教你如何打造属于你自己的事业人生
Learning SQL and creating a draftable set of cards for a variety of Magic the Gathering experiences
Creating a Class Factory with C# and .NET.doc
Creating a Web Forms User Interface
Now, in Creating a World Without Poverty, Yunus goes beyond microcredit to pioneer the idea of social business—a completely new way to use the creative vibrancy of business to tackle social problems ...