jstorm集群部署

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

猜你喜欢

转载自wuneng94zui.iteye.com/blog/2260893