1.下载并启动zookeeper
2.下载配置storm
官网地址 http://apache.fayea.com/storm
下载版本为 apache-storm-2.0.0
添加环境变量
export STORM_HOME=/opt/apache-storm-2.0.0
export PATH=$STORM_HOME/bin:$PATH
修改配置文件
storm.zookeeper.servers: - "127.0.0.1" # # nimbus.seeds: ["host1","host2","host3"]
nimbus.seeds: ["127.0.0.1"]
#storm.zookeeper.port: 2181
#本地文件存放目录就在/usr/storm下 storm.local.dir: "/opt/apache-storm-2.0.0/file"
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
启动
./bin/storm nimbus &
./bin/storm supervisor &
./bin/storm ui &
命令查看
[root@insure opt]# jps 19618 Supervisor 19832 UIServer 19386 Nimbus 9102 QuorumPeerMain
界面查看