Storm1.0.6环境搭建

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上启动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

 

posted @ 2019-04-25 11:09 Rest探路者 阅读( ...) 评论( ...) 编辑 收藏
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值