Storm1.0.6环境搭建

1.配置

三台服务器搭建Storm集群:CentOS7One,CentOS7Two,CentOS7Three

在CentOS7One机器上配置

1.1 zookeeper配置

目录:/opt/zookeeper/zookeeper-3.4.10/conf

编辑zoo.cfg

server.0=CentOS7One:2888:3888
server.1=CentOS7Two:2888:3888
server.2=CentOS7Three:2888:3888

1.2 storm配置

目录:/usr/local/storm/apache-storm-1.0.6/conf

编辑storm.yaml

加入如下配置

storm.zookeeper.servers:
     - "CentOS7One"
     - "CentOS7Two"
     - "CentOS7Three"


nimbus.seeds: ["CentOS7One", "CentOS7Two", "CentOS7Three"]

用scp命令把zk和sorm配置分别拷贝到CentOS7Two和CentOS7Three

2.启动

分别在CentOS7One,CentOS7Two,CentOS7Three上启动Zookeeper

sh /opt/zookeeper/zookeeper-3.4.10/bin/zkServer.sh start

在CentOS7One上启动nimbus和ui模块

sh /usr/local/storm/apache-storm-1.0.6/bin/storm nimbus
sh /usr/local/storm/apache-storm-1.0.6/bin/storm ui

在CentOS7Two、CentOS7Three上启动supervisor

sh /usr/local/storm/apache-storm-1.0.6/bin/storm supervisor

打开http://centos7one:8080/index.html

可以看到集群情况,1个Supervisor有4个Slots,Slots即Workers

编写Java测试类提交Topology

打包完成放在CentOS7One上运行

sh /usr/local/storm/apache-storm-1.0.6/bin/storm jar /root/TopoMain_jar.jar  com.advance.storm.TopoMain

 

posted @   Rest探路者  阅读(285)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
levels of contents
点击右上角即可分享
微信分享提示