首页 > Web开发 > 详细

jstorm集群部署

时间:2015-12-02 02:06:41      阅读:260      评论:0      收藏:0      [点我收藏+]

Install JStorm

Take jstorm-0.9.6.zip as an example

unzip jstorm-0.9.6.1.zip
vi ~/.bashrc
export JSTORM_HOME=/XXXXX/XXXX
export PATH=$PATH:$JSTORM_HOME/bin

vi $JSTORM_HOME/conf/storm.yaml?

? ? ???storm.zookeeper.servers:

? ? ?- "192.168.144.79"

? ? ?- "192.168.145.138"

? ? ?- "192.168.145.129"

? ? ?nimbus.host: "192.168.144.79"

? ? ?storm.local.dir: "%JSTORM_HOME%/data"

? ? ?supervisor.slots.ports.base: 6800

? ? ?supervisor.slots.port.cpu.weight: 1.2

? ? ?supervisor.slots.port.mem.weight: 0.7

? ? ?supervisor.slots.ports: null

#mkdir ~/.jstorm

#cp –f $JSTORM_HOME/conf/storm.yaml ~/.jstorm

?

Install JStorm Web UI

Note: Web UI can run on the node different from the Nimbus node.

Download tomcat 7.x (take apache-tomcat-7.0.37 as an example)

mkdir ~/.jstorm 
cp -f $JSTORM_HOME/conf/storm.yaml ~/.jstorm
tar -xzf apache-tomcat-7.0.37.tar.gz
cd apache-tomcat-7.0.37
cd webapps
cp $JSTORM_HOME/jstorm-ui-0.9.6.1.war ./
mv ROOT ROOT.old
ln -s jstorm-ui-0.6.1 ROOT
cd ../bin
./startup.sh

?

Start JStorm

?$JSTORM_HOME/bin/start.sh

jstorm集群部署

原文:http://wuneng94zui.iteye.com/blog/2260893

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!