首页 > 技术文章 > apache-storm-1.0.3安装部署

zhangmingcheng 2017-02-24 19:02 原文

 

CentOS7-1

CentOS7-2

CentOS7-3

CentOS7-4

nimbus

supervisor

supervisor

supervisor

core(UI)

 

 

 

1、首先安装配置zookeeper

2、Python安装(官网要求2.6.6以上),CentOS7系统自带2.7.x版本。

3、配置/opt/apache-storm-1.0.3/conf/storm.yaml

 storm.zookeeper.servers:

     - "CentOS7-1"

     - "CentOS7-2"

     - "CentOS7-3"

 nimbus.seeds: ["CentOS7-1"]

 supervisor.slots.ports:

     - 6700

     - 6701

     - 6702

     - 6703

 storm.local.dir: "/storm/localdir/"

 ui.port: 10080

  注意:上面配置参数前的空格符、TAB符不要去掉,否则会报错

4、同步以上配置到其他服务器。

5、 在各个节点上增加storm集群本地存储文件,该目录被Nimbus和Supervisor进程用于存储少量状态,如jars、confs等的本地磁盘目录,需要提前创建该目录并给以足够的访问权限。然后在storm.yaml中配置该目录

sudo mkdir -p /storm/localdir/

 6、启动Storm各个后台进程

 在hostname=master节点CentOS7-1启动Nimbus进程服务,放置于后台运行

  nohup bin/storm nimbus >/dev/null 2>&1 &

在各个hostname-slavery节点(CentOS7-2CentOS7-3,CentOS7-4)启动Supervisor

  nohup bin/storm supervisor >/dev/null 2>&1 &

hostname=master(CentOS7-1节点启动UI进程服务,放置于后台运行

  nohup bin/storm ui >/dev/null 2>&1 &  

7、 启动后打开浏览器,访问http://10.79.115.111:10080,打开的storm ui界面如下:

 

推荐阅读