参考http://blog.linezing.com/2013/01/how-to-install-and-deploy-storm-cluster?spm=0.0.0.0.fQmOrE
仅仅做个记录,其实上面博客已经写的很详细,只是其中部分更简化了些
1、JZMQ的安装
该步骤又要安装git,还得线上clone,由于公司网速不给力,折腾了半天,最后进入https://github.com/nathanmarz/jzmq.git ,下载下来zip,解压后按余下的步骤做即可
git clone https://github.com/nathanmarz/jzmq.git //如果不行可手工下载下来zip
cd jzmq
./autogen.sh
./configure
make
sudo make install
2、zookeeper的安装
conf/zoo.cfg:
tickTime=2000
dataDir=/home/hadoop/zookeeper/
clientPort=2181
initLimit=5
syncLimit=2
zookeeper启动
bin/zkServer.sh start
检测是否可用
bin/zkCli.sh -server 127.0.0.1:2181
3、Storm的安装
解压后
conf/storm-yaml加入
storm.zookeeper.servers:
- "192.168.27.101"
最后启动
bin/storm nimbus >/home/hadoop/storm-0.8.1/nimbus_start.log 2>&1 &
bin/storm supervisor >/home/hadoop/storm-0.8.1/supervisor_start.log 2>&1 &
bin/storm ui >/home/hadoop/storm-0.8.1/ui_start.log 2>&1 &
查看UI:http://192.168.27.101:8080/