您的位置:首页 > 其它

007-storm开发计数程序集群模式运行

2015-10-09 11:47 363 查看
1、主函数集群模式代码

String name = CountStormClusterTopology.class .getSimpleName()+System.currentTimeMillis ();
 /**
  *  Submits a topology to run on the cluster. 
  */
StormSubmitter. submitTopology(name, new Config(),topologyBuilder.createTopology());


2、 集群模式提交
storm jar storm.jar storm.CountStormClusterTopology

3、停止作业
先查询作业列表storm list

命令行下执行storm kill TopologyName

在storm ui上点击kill按钮
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: