码迷,mamicode.com
首页 > 其他好文 > 详细

storm 运行拓扑

时间:2014-09-24 18:31:28      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:generated   command   following   example   because   

Next, package the source into a jar, which is sent when you run the Storm Client command

to submit the topology. Because you used Maven, the only thing you need to do

is go to the source folder and run the following:

mvn package

Once you have the generated jar, use the storm jar command to submit the topology

(you should know how to install the Storm client into Appendix A). The syntax is 

storm jar allmycode.jar org.me.MyTopology arg1 arg2 arg3.

In this example, from the topologies source project folder, run:

storm jar target/Topologies-0.0.1-SNAPSHOT.jar countword.TopologyMain src/main/

resources/words.txt

With these commands, you have submitted the topology to the cluster.

To stop/kill it, run:

storm kill Count-Word-Topology-With-Refresh-Cache


storm 运行拓扑

标签:generated   command   following   example   because   

原文地址:http://smilezhuolin.blog.51cto.com/7671611/1557636

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!