前言

真是后知后觉,最近忙也要学习,把以前丢的都要拾起来。原理懂不懂也把环境搭起来学习。

  环境 

centos7

jdk 1.8

zookeeper 3.4.13

storm 1.2.2

安装

    1.zookeeper安装

         我装了三台虚拟机,配置如下:

jdk配置

vi /etc/profile

#java config
export JAVA_HOME=/opt/jdk/jdk1.8.0_201
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

设置静态ip

vi /etc/sysconfig/network-scripts/ifcfg-ens33 TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=07864689-6643-454f-9172-d09dfde88267
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.5.201/202/203
GATEWAY=192.168.5.1
DNS1=114.114.114.114
DNS2=8.8.8.8

设置hosts,方便使用

vi /etc/hosts192.168.5.201 centos01
192.168.5.202 centos02
192.168.5.203 centos03

机器配置好了,我们开始安装zookeeper

vi zoo.cfg# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/opt/zookeeper/data
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
server.0=centos01:2888:3888
server.1=centos02:2888:3888
server.2=centos03:2888:3888

vi /etc/profile# zookeeper
export ZK_HOME=/opt/zookeeper/zookeeper-3.4.13
export PATH=$ZK_HOME/bin:$PATH

           2.storm安装

nimbus上的配置

########### These MUST be filled in for a storm configuration
storm.zookeeper.servers:- "centos01"- "centos02"- "centos03"
#
# nimbus.seeds: ["host1", "host2", "host3"]
#
#
# ##### These may optionally be filled in:
storm.local.dir: "/usr/data/storm"
supervisor.slots.ports:- 6700- 6701- 6702
nimbus.host: "centos01"## 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:- "centos01"
#     - "server2"
worker.childopts: "-Xmx2048m"

supervisor上的配置

########### These MUST be filled in for a storm configuration
storm.zookeeper.servers:- "centos01"- "centos02"- "centos03"
#
# nimbus.seeds: ["host1", "host2", "host3"]
#
#
# ##### These may optionally be filled in:
storm.local.dir: "/usr/data/storm"
supervisor.slots.ports:- 6700- 6701- 6702
nimbus.host: "centos01"## 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:- "centos01"
#     - "server2"
worker.childopts: "-Xmx2048m"
## Metrics Consumers
## max.retain.metric.tuples
## whitelist / blacklist
## - you can specify multiple whitelist / blacklist with regular expression
## expandMapType: expand metric with map type as value to multiple metrics
## - set to true when you would like to apply filter to expanded metrics
## - default value is false which is backward compatible value
## - only effective when expandMapType is set to true
# topology.metrics.consumer.register:- "centos02"- "centos03"
#
# nimbus.seeds: ["host1", "host2", "host3"]
#
#
# ##### These may optionally be filled in:
storm.local.dir: "/usr/data/storm"
supervisor.slots.ports:- 6700- 6701- 6702
nimbus.host: "centos01"## 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:- "centos01"
#     - "server2"
worker.childopts: "-Xmx2048m"

vi /etc/profile# storm
export STORM_HOME=/opt/apache-storm-1.2.2
export PATH=${STORM_HOME}/bin:$PATH

配置好后,我们开始启动吧!

先启动zookeeper

zkServer.sh start[root@centos03 bin]# zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /opt/zookeeper/zookeeper-3.4.13/bin/../conf/zoo.cfg
Mode: leader

再启动storm

nimbus上启动./storm nimbus >> /dev/null &
storm drpc >> /dev/null &
storm ui >> /dev/null &supervisor上启动storm supervisor >> /dev/null &

在我实体电脑上访问http://192.168.5.201:8080时找不到网页,是防火墙的事

firewall-cmd --zone=public --add-port=8080/tcp --permanent

firewall-cmd --reload

好了!

转载于:https://www.cnblogs.com/javage/p/10720232.html

centos7下安装storm步骤相关推荐

  1. linux 安装redis2.8.3,centos7下安装Redis2.8版本步骤

    Redis 简介 Redis支持数据的持久化,可以将内存中的数据保存在磁盘中,重启的时候可以再次加载进行使用. Redis不仅仅支持简单的key-value类型的数据,同时还提供list,set,zs ...

  2. CentOS7下安装GUI图形界面

    1.如何在centOS7下安装GUI图形界面 当你安装centOS7服务器版本的时候,系统默认是不会安装GUI的图形界面程序,这个需要手动安装CentOS7 Gnome GUI包. 2.在系统下使用命 ...

  3. VMware虚拟机里centos7下安装mysql5.6并授权远程连接Navicat

    正文内容 这节来安装Mysql5.6,并远程授权连接本地windows的Navicat,可以根据以下步骤安装.此文章为自己收藏,必要时拿出来直接用的,有需要的友友可以查看查看的.文章图片有借助于网络的 ...

  4. Centos7下安装配置开源存储虚拟化QuadStor(4)----Vdisk Clone

    操作环境 同< Centos7下安装配置开源存储虚拟化QuadStor(1)------初始化QuadStor> QuadStor Server:10.10.200.227 iSCSi I ...

  5. 【潇湘菌子】Centos7下安装node.js环境

    Centos7下安装node.js环境 过多的介绍就不写了,因为但凡对node.js一点儿都不懂的人,也不至于来搜这个. 情况一:有外网 更换版本信息 [root@VM-0-7-centos ~]# ...

  6. 【Linux】CentOS7下安装Ngnix代理服务器详细过程 附Linux 64位 Ngnix压缩包百度云盘分享

    [Linux]CentOS7下安装Ngnix代理服务器详细过程 附Linux 64位 Ngnix压缩包百度云盘分享 Ngnix基本概况 Nginx (读作"engine X") 由 ...

  7. CentOS7下安装Ceph供Kubernetes使用

    CentOS7下安装Ceph供Kubernetes使用 CentOS7下安装Ceph供Kubernetes使用 1. 环境说明 2. Ceph部署准备 2.1 节点规划 2.2 添加yum源 2.3 ...

  8. @在 centos7 下安装 oracle 12c

    本文内容:图形界面方式在 centos 7 下安装 oracle 12c R1 网上已有很多关于如何在 linux 中安装 oracle 的博文,但很多博文都是互相抄袭或者描述不详细,比如没有说清其本 ...

  9. Centos7下安装Docker

    Centos7下安装Docker(详细的新手装逼教程) 参考: https://www.cnblogs.com/qgc1995/archive/2018/08/29/9553572.html 早就听说 ...

最新文章

  1. bzoj2020[Usaco2010 Jan]Buying Feed, II*
  2. “单词不用背,看完自然会”,4天背过1万单词,原来学英语真的有捷径!
  3. JavaScript前端框架的思考
  4. HTML(5)+CSS(3)--那些不知道但重要的知识!
  5. MS BizSpark计划-免费提供软件和服务
  6. VTK:隐式函数之SampleFunction
  7. zigbee vs 433
  8. 封装案例-02-创建(qiang)类
  9. php 渐变色,段落每行渐变色文本效果
  10. android四周阴影效果_帮助独立开发者轻松创建令人惊叹的产品视觉效果
  11. (笔试题)滑动窗口的最大值
  12. 用excel做线性规划
  13. 三角函数正交性理解与Matlab分析
  14. 笔记本键盘字母变数字解决方法
  15. 利用arcmap提取河流中心线
  16. vpc经典网络区别_阿里云经典网络与VPC网络互通的实现
  17. 开视界 创未来丨酷雷曼第十期合作商交流会圆满举办
  18. python坑爹的黑店_曝光米兰爱马仕黑店极其坑爹配货经验!大家不要再白白上当了!...
  19. 关于SAP 启用新公司时 选用的会计准则
  20. 天道不一定酬勤,深度思考比勤奋更重要

热门文章

  1. Serverless 工程实践 | 自建 Apache OpenWhisk 平台
  2. 将企业安全基线复制上云,实现云上IT运维的持续风控
  3. 在unity2d同屏显示9千人
  4. 从零点五开始用Unity做半个2D战棋小游戏(十)
  5. “绳索”与“链接”:《死亡搁浅》的玩法解构
  6. keycode对照表(键码对照表)
  7. 程序员养生之道——坚持泡脚(十五分钟以上)
  8. Toad for Oracle工具的使用(二)
  9. Linux学习笔记04
  10. 保存对象报错with two open Sessions