实现Storm的HA和Demo演示
(*)每台机器都需要修改
增加一个主节点
nimbus.seeds: ["bigdata12", "bigdata13"]
启用Event Logger 可以查看处理的数据
"topology.eventlogger.executors": 1
(*)在每个节点上启动
启动: 主节点bigdata112: storm nimbus &
UI网页 storm ui & 地址: http://ip:8080
storm logviewer & 启动日志查看器
主节点bigdata113: storm nimbus &
UI网页 storm ui & 地址: http://ip:8080
storm logviewer & 启动日志查看器
从节点bigdata113和 bigdata114: storm supervisor &
storm logviewer & 启动日志查看器
(*)Demo演示:WordCount 单词计数
Example位置:/root/training/apache-storm-1.0.3/examples/storm-starter/storm-starter-topologies-1.0.3.jar
"""
查看readme文件
1. [ExclamationTopology](src/jvm/org/apache/storm/starter/ExclamationTopology.java): Basic topology written in all Java
2.[WordCountTopology](src/jvm/org/apache/storm/starter/WordCountTopology.java): Basic topology that makes use of multilang by implementing one bolt in Python
3. [ReachTopology](src/jvm/org/apache/storm/starter/ReachTopology.java): Example of complex DRPC on top of Storm
"""
运行:storm jar ***.jar 任务Topology的类 别名
storm jar storm-starter-topologies-1.0.3.jar org.apache.storm.starter.WordCountTopology MyWCTopology
日志:
Start uploading file 'storm-starter-topologies-1.0.3.jar' to '/root/training/apache-storm-1.0.3/tmp/nimbus/inbox/stormjar-40ac7490-e694-4dbf-9316-a5349c0cf83b.jar' (73522925 bytes)
查看处理的数据:启用Debug