storm - study notes
来源:互联网 发布:美颜软件哪个好 编辑:程序博客网 时间:2024/05/13 07:33
Study storm
Topology is a Thrift service, has
Spout - IRichSpout;
Tuple
Bolt - IRichBolt; BaseRichBolt
Data model is
Tuple (in stream format)
/*== start-up java codes ==*/
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("words", new TestWordSpout(), 10);
builder.setBolt("exclaim1", new ExclamationBolt(), 3).shuffleGrouping("words");
builder.setBolt("exclaim2", new ExclamationBolt(), 2).shuffleGrouping("exclaim1");
/*== Here's the code that runs ExclamationTopology in local mode ==*/
Config conf = new Config();
conf.setDebug(true);
conf.setNumWorkers(2);
LocalCluster cluster = new LocalCluster();
cluster.submitTopology("test", conf, builder.createTopology());
Utils.sleep(10000);
cluster.killTopology("test");
cluster.shutdown();
==Install storm==
http://blog.csdn.net/blue_jjw/article/details/9264131
Better one:
http://www.cnblogs.com/XjChenny/p/3214039.html
==Issue resolution when run storm in local mode under windows==
java.net.SocketException: Address family not supported by protocol family
http://blog.csdn.net/myemail_sl/article/details/11074017
Fix for file delete problem on Windows https://github.com/dkincaid/storm/commit/34244038f7ca79e5c8138142f39d827c4338a205
==Architecture diagram from my understanding (as of 23Sep2013)==
- storm - study notes
- study notes
- storm study
- MySql study notes [1]
- Portlet Study Notes (1)
- IBM Director study notes
- lucene study notes
- lucene study notes (2)
- Legacy Study notes(Servlet)
- C++ Study Notes
- System Architect Study notes
- flex study notes (2)
- scm515 study notes
- Java API Study Notes
- Webkit Timer study notes
- Webkit JNI study notes
- Hash study notes
- Web Service Study notes
- String.format方法使用
- g++小白错误
- 一致性hash算法的好文
- iOS1.0到iOS7,iOS七大版本特性回顾
- redis compress
- storm - study notes
- 微软过桥问题Dijkstra/倒水问题
- 浅析:setsockopt()改善程序的健壮性
- PHP5.5的一点变化
- 设计模式学习笔记-组合模式
- socket数据发送过程zz
- ios app唤起页面跳转
- [每日一题] 11gOCP 1z0-052 :2013-09-17 DRA--Data Recovery Advisor.............................B31
- zedboard--zynq使用自带外设IP让ARM PS访问FPGA(八)