实现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)
            

Storm HA 环境


            查看处理的数据:启用Debug

Storm HA 环境

 

相关文章:

  • 2021-11-15
  • 2022-12-23
  • 2021-04-01
  • 2021-11-17
  • 2021-03-27
  • 2021-05-03
猜你喜欢
  • 2021-05-07
  • 2021-06-03
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2021-08-14
相关资源
相似解决方案