码迷,mamicode.com
首页 > 其他好文 > 详细

storm的集群安装与配置

时间:2015-08-08 13:36:06      阅读:99      评论:0      收藏:0      [点我收藏+]

标签:storm集群安装

           storm集群安装

机器:(storm及zookeeper都是这3台机器)

192.168.80.20

192.168.80.21

192.168.80.22

需要准备的软件有:

zookeeper(zookeeper-3.4.4.tar.gz),storm(storm-0.8.1.zip) ,jdk

1、配置zookeeper

这里就不介绍了!

2、配置storm

解压storm

进入conf目录,编辑storm.yaml文件

########## These MUST be filled in for a storm configuration
 storm.zookeeper.servers:
     - "192.168.80.20"
     - "192.168.80.21"

     - "192.168.80.22"



 nimbus.host: "192.168.80.20"


 storm.local.dir: "/opt/storm/data"
 ##### These may optionally be filled in:


# List of custom serializations
# topology.kryo.register:
#     - org.mycompany.MyType
#     - org.mycompany.MyType2: org.mycompany.MyType2Serializer
#
## List of custom kryo decorators
# topology.kryo.decorators:
#     - org.mycompany.MyDecorator


# Locations of the drpc servers
# drpc.servers:
    # - "127.0.0.1"
     #- "server2"
## to nimbus 
#nimbus.childopts: "-Xmx1024m" 
#
## to supervisor 
#supervisor.childopts: "-Xmx1024m" 
#
## to worker 
#worker.childopts: "-Xmx768m"

3、配置完成之后,开始启动zookeeper和storm

启动zookeeper

bin/zkServer.sh start

启动storm

bin/storm nimbus(在192.168.80.20启动主节点) 或者 nohup bin/storm nimbus > /dev/null 2>&1 &

bin/storm supervisor (在192.168.80.21启动从节点)或者  nohup bin/storm supervisor > /dev/null 2>&1 &

bin/storm supervisor (在192.168.80.22启动从节点)或者 nohup bin/storm supervisor > /dev/null 2>&1 &

bin/storm ui (在192.168.80.20启动界面) 或者 nohup bin/storm ui > /dev/null 2>&1 &

浏览器打开: http://192.168.80.20:8080 查看集群的运行状态

搞定了!!!!!!!!!!!


版权声明:本文为博主原创文章,未经博主允许不得转载。

storm的集群安装与配置

标签:storm集群安装

原文地址:http://blog.csdn.net/u010220089/article/details/47357347

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!