centos7 安装storm( 一)

安装地址: hadoop1: 192.168.1.60    hadoop2:192.168.1.61    hadoop2:192.168.1.62

下载

[root@hadoop1 yao]# wget https://mirrors.tuna.tsinghua.edu.cn/apache/storm/apache-storm-1.2.1/apache-storm-1.2.1.tar.gz

解压

[root@hadoop1 yao]#  tar -zxvf apache-storm-1.2.1.tar.gz 
修改storm的配置文件

[root@hadoop1 apache-storm-1.2.1]# vim conf/storm.yaml 

storm.zookeeper.servers:
 - "hadoop1"
 - "hadoop2"
 - "hadoop3"

#避免与该集群中安装的scala端口冲突,修改storm的ui端口为9090

ui.port: 9090

storm.local.dir: "/root/yao/apache-storm-1.2.1/status"
nimbus.seeds: ["hadoop1"]
supervisor.slots.ports:
 - 6700
 - 6701
 - 6702
 - 6703

#额外开启JMX支持,在配置文件中加入如下配置:

supervisor.childopts: -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=9998

注意:以上配置,凡是有冒号的地方,冒号后都要有个空格。

将该storm文件夹 发送给hadoop2,hadoop3 

[root@hadoop1 apache-storm-1.2.1]# scp -r apache-storm-1.2.1 root@hadoop2:/root/yao/
[root@hadoop1 apache-storm-1.2.1]# scp -r apache-storm-1.2.1 root@hadoop3:/root/yao/
 

分别修改hadoop1,2,3 的系统配置文件

[root@hadoop1 apache-storm-1.2.1]# vim /etc/profile
export STORM_HOME=/root/yao/apache-storm-1.2.1
export PATH=$PATH:$STORM_HOME/bin

刷新配置文件
[root@hadoop1 apache-storm-1.2.1]# source /etc/profile
 

分别启动hadoop集群的storm进程:

[root@hadoop1 apache-storm-1.2.1]# ./bin/storm nimbus &
[root@hadoop1 apache-storm-1.2.1]# ./bin/storm supervisor &

[root@hadoop1 apache-storm-1.2.1]# ./bin/storm ui &

[root@hadoop2 apache-storm-1.2.1]# ./bin/storm supervisor &

[root@hadoop3 apache-storm-1.2.1]# ./bin/storm supervisor &
 

浏览器查看storm安装成功

http://192.168.1.60:9090/

参考文章: https://www.cnblogs.com/zhaojiankai/p/7257617.html

猜你喜欢

转载自blog.csdn.net/qq_33124081/article/details/82419570