centos7下安装storm步骤
前言
真是后知后觉,最近忙也要学习,把以前丢的都要拾起来。原理懂不懂也把环境搭起来学习。
环境
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步骤相关推荐
- linux 安装redis2.8.3,centos7下安装Redis2.8版本步骤
Redis 简介 Redis支持数据的持久化,可以将内存中的数据保存在磁盘中,重启的时候可以再次加载进行使用. Redis不仅仅支持简单的key-value类型的数据,同时还提供list,set,zs ...
- CentOS7下安装GUI图形界面
1.如何在centOS7下安装GUI图形界面 当你安装centOS7服务器版本的时候,系统默认是不会安装GUI的图形界面程序,这个需要手动安装CentOS7 Gnome GUI包. 2.在系统下使用命 ...
- VMware虚拟机里centos7下安装mysql5.6并授权远程连接Navicat
正文内容 这节来安装Mysql5.6,并远程授权连接本地windows的Navicat,可以根据以下步骤安装.此文章为自己收藏,必要时拿出来直接用的,有需要的友友可以查看查看的.文章图片有借助于网络的 ...
- Centos7下安装配置开源存储虚拟化QuadStor(4)----Vdisk Clone
操作环境 同< Centos7下安装配置开源存储虚拟化QuadStor(1)------初始化QuadStor> QuadStor Server:10.10.200.227 iSCSi I ...
- 【潇湘菌子】Centos7下安装node.js环境
Centos7下安装node.js环境 过多的介绍就不写了,因为但凡对node.js一点儿都不懂的人,也不至于来搜这个. 情况一:有外网 更换版本信息 [root@VM-0-7-centos ~]# ...
- 【Linux】CentOS7下安装Ngnix代理服务器详细过程 附Linux 64位 Ngnix压缩包百度云盘分享
[Linux]CentOS7下安装Ngnix代理服务器详细过程 附Linux 64位 Ngnix压缩包百度云盘分享 Ngnix基本概况 Nginx (读作"engine X") 由 ...
- CentOS7下安装Ceph供Kubernetes使用
CentOS7下安装Ceph供Kubernetes使用 CentOS7下安装Ceph供Kubernetes使用 1. 环境说明 2. Ceph部署准备 2.1 节点规划 2.2 添加yum源 2.3 ...
- @在 centos7 下安装 oracle 12c
本文内容:图形界面方式在 centos 7 下安装 oracle 12c R1 网上已有很多关于如何在 linux 中安装 oracle 的博文,但很多博文都是互相抄袭或者描述不详细,比如没有说清其本 ...
- Centos7下安装Docker
Centos7下安装Docker(详细的新手装逼教程) 参考: https://www.cnblogs.com/qgc1995/archive/2018/08/29/9553572.html 早就听说 ...
最新文章
- bzoj2020[Usaco2010 Jan]Buying Feed, II*
- “单词不用背,看完自然会”,4天背过1万单词,原来学英语真的有捷径!
- JavaScript前端框架的思考
- HTML(5)+CSS(3)--那些不知道但重要的知识!
- MS BizSpark计划-免费提供软件和服务
- VTK:隐式函数之SampleFunction
- zigbee vs 433
- 封装案例-02-创建(qiang)类
- php 渐变色,段落每行渐变色文本效果
- android四周阴影效果_帮助独立开发者轻松创建令人惊叹的产品视觉效果
- (笔试题)滑动窗口的最大值
- 用excel做线性规划
- 三角函数正交性理解与Matlab分析
- 笔记本键盘字母变数字解决方法
- 利用arcmap提取河流中心线
- vpc经典网络区别_阿里云经典网络与VPC网络互通的实现
- 开视界 创未来丨酷雷曼第十期合作商交流会圆满举办
- python坑爹的黑店_曝光米兰爱马仕黑店极其坑爹配货经验!大家不要再白白上当了!...
- 关于SAP 启用新公司时 选用的会计准则
- 天道不一定酬勤,深度思考比勤奋更重要