Storm伪分布式配置

配置zookeeper

教程链接: https://www.cnblogs.com/studyNotesSL/p/11517477.html

配置Strom

# 进入Strom的tar包目录解压,重名名文件
tar -zxvf apache-storm-0.9.7.tar.gz
mv apache-storm-0.9.7 /opt/storm/storm0.9.7

配置环境变量

vi /etc/profile
#strom config
export STORM_HOME=/opt/storm/storm0.9.7

# PATH config

export PATH=.:${JAVA_HOME}/bin:${SCALA_HOME}/bin:${SPARK_HOME}/bin:${HADOOP_HOME}/bin:${HADOOP_HOME}/sbin:${ZK_HOME}/bin:${HBASE_HOME}/bin:${HIVE_HOME}/bin:${KAFKA_HOME}/bin:${SQOOP_HOME}/bin:${FLUME_HOME}/bin:${STORM_HOME}/bin:$PATH

修改配置文件

vi /opt/storm/storm0.9.7/conf/storm.yaml 
storm.zookeeper.servers:
    - "localhost"

nimbus.host: "localhost"

storm.local.dir: /opt/storm/storm0.9.7/stormlocaldir

supervisor.slots.ports:
       - 6700
       - 6701
       - 6702
       - 6703 

启动Strom

# 启动zookeeper
/opt/zookeeper/zookeeper3.4/bin/zkServer.sh start conf/zoo_1.cfg 
/opt/zookeeper/zookeeper3.4/bin/zkServer.sh start conf/zoo_2.cfg 
/opt/zookeeper/zookeeper3.4/bin/zkServer.sh start conf/zoo_3.cfg 
# 启动Strom,启动的服务窗口不能关闭
storm nimbus &

storm supervisor &

# 启动storm web ui服务
storm ui &

# 启动storm log web服务
storm logviewer &

查看启动状态

查看Strom Web UI页面: http://localhost:8080

2019-09-15_15-41-36

启动storm log web页面: http://localhost:8000/

2019-09-15_15-48-41

posted @ 2019-09-17 16:22  会走的树  阅读(351)  评论(0编辑  收藏  举报