栏目分类:
子分类:
返回
终身学习网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
终身学习网 > IT > 前沿技术 > 大数据 > 大数据系统

storm搭建

大数据系统 更新时间:发布时间: 百科书网 趣学号
Storm集群配置

需要先开启zookeeper

解压安装包
[root@master software]# tar -zxvf apache-storm-1.2.3.tar.gz -C /usr/local/src
[root@master software]# cd /usr/local/src
[root@master src]# mv apache-storm-1.2.3/ storm
配置环境变量
[root@master src]# vim /etc/profile
[root@master conf]# source /etc/profile

###storm
export STORM_HOME=/usr/local/src/storm
export PATH=$PATH:$STORM_HOME/bin

分发环境变量

[root@master conf]# scp /etc/profile slave1:/etc/profile
[root@master conf]# scp /etc/profile slave2:/etc/profile
修改配置文件
[root@master src]# cd /usr/local/src/storm/conf
[root@master conf]# vim storm.yaml 

##冒号后面要有空格
storm.zookeeper.servers: 
    - "master"
    - "slave1"
    - "slave2"

storm.local.dir: "/usr/local/src/storm/data"
nimbus.seeds: ["master"]					//不是ha的话只需要指定一个主机
supervisor.slots.ports: 
    - 6700
    - 6701
    - 6702
    - 6703
ui.port: 9999

分发目录

[root@master conf]# scp -r /usr/local/src/storm slave1:/usr/local/src
[root@master conf]# scp -r /usr/local/src/storm slave2:/usr/local/src
启动集群
[root@master conf]# nohup storm nimbus &
[root@master conf]# nohup storm ui &
[root@master conf]# nohup storm supervisor &

[root@slave1 ~]# nohup storm nimbus &     //不是hadoopHA不用启动
[root@slave1 ~]#  nohup storm supervisor &

[root@slave2 ~]# nohup storm supervisor &

进入ui界面

转载请注明:文章转载自 www.051e.com
本文地址:http://www.051e.com/it/601437.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 ©2023-2025 051e.com

ICP备案号:京ICP备12030808号