首页 > 其他 > 详细

storm 运行拓扑

时间:2014-09-24 16:15:59      阅读:248      评论:0      收藏:0      [点我收藏+]

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 运行拓扑

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!