基于厂迟辞谤尘分布式流计算的实时路况系统
- 8. Storm部署
1)ZeroMQ安装
# tar zxf zeromq-2.1.7.tar.gz
# cd zeromq-2.1.7
# ./configure
# make
# make install
# sudo ldconfig
2)安装jzmq
# git clone git://github.com/nathanmarz/jzmq.git
# cd jzmq
# ./autogen.sh
# ./configure
# make
# make install
3)zookeeper
# tar -zxf zookeeper-3.4.5.tar.gz
# cp -R zookeeper-3.4.5 /usr/local/
export
ZOOKEEPER_HOME="/path/to/zookeeper
export
PATH=$PATH:$ZOOKEEPER_HOME/bin
# cd /usr/local/zookeeper/conf/
# cp zoo_sample.cfg zoo.cfg
启动服务 bin/zkServer.sh start
4)Storm
# unzip storm-0.8.1.zip
export STORM_HOME=/usr/local/storm-0.8.1
export PATH=$PATH:$STORM_HOME/bin
到此为止单机版的Storm就安装完毕了。
- 9. Storm集群配置
配置文件:storm.yaml
########## These MUST be filled in for a storm configuration
storm.zookeeper.servers:
- "192.168.61.130"
- "192.168.61.134"
- "192.168.61.135"
nimbus.host: "192.168.61.130"
storm.local.dir: "/data/storm/data"
ui.port: "8080"
参考:
1. http://hitina.lofter.com/post/a8c5e_136579 《Twitter Storm 安装实战》
2.http://www.cnblogs.com/panfeng412/archive/2012/11/30/how-to-install-and-deploy-storm-cluster.html 《Storm集群安装部署步骤【详细版】》