大数据课程 实时计算框架之软件安装篇 3
storm的安装与配置
希望可以做到让你直接复制粘贴就能完成学校的实验
1.解压
tar -zxvf /opt/module/apache-storm-1.0.3.tar.gz -C /opt
mv apache-storm-1.0.3/ storm
2. vim storm.yaml
storm.zookeeper.servers:
- "hmbb1"
- "hmbb2"
- "hmbb3"
nimbus.seeds: ["hmbb1"]
supervisor.slots.ports:
- 6700
- 6701
ui.port: 8081
storm.local.dir: "/opt/storm/data"
storm.zookeeper.servers:
- "hmbb1"
- "hmbb2"
- "hmbb3"
mkdir /opt/storm/data
chmod 700 /opt/storm/data
在环境变量中添加(先vim ~/.bashrc
):
#STORM_HOME
export STORM_HOME=/opt/storm
export PATH=$PATH:$STORM_HOME/bin
然后source ~/.bashrc
然后先启动zookeeper,如已启动请忽略 zkServer.sh start
尝试启动nimbus守护进程(只在主节点) nohup storm nimbus &
三台机器:nohup storm supervisor &
主节点:nohup storm ui &
三台机器:nohup storm logviewer &