Take jstorm-0.9.6.zip as an examplenode
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
web
storm.zookeeper.servers:apache
- "192.168.144.79"tomcat
- "192.168.145.138"bash
- "192.168.145.129"app
nimbus.host: "192.168.144.79"webapp
storm.local.dir: "%JSTORM_HOME%/data"ui
supervisor.slots.ports.base: 6800spa
supervisor.slots.port.cpu.weight: 1.2code
supervisor.slots.port.mem.weight: 0.7
supervisor.slots.ports: null
#mkdir ~/.jstorm
#cp –f $JSTORM_HOME/conf/storm.yaml ~/.jstorm
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