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

storm的集群安装与配置

时间:2017-08-04 09:57:53      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:ora   gis   文件夹   机器   family   line   ons   super   iso   

           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的集群安装与配置

标签:ora   gis   文件夹   机器   family   line   ons   super   iso   

原文地址:http://www.cnblogs.com/tlnshuju/p/7283162.html

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