jstorm集群部署下载 Install JStorm
Take jstorm-0.9.6.zip as an example
unzip jstorm-0.9.6.1.zipvi ~/.bashrc
export JSTORM_HOME=/XXXXX/XXXXexport 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 ~/.jstormtar -xzf apache-tomcat-7.0.37.tar.gzcd apache-tomcat-7.0.37cd webappscp $JSTORM_HOME/jstorm-ui-0.9.6.1.war ./mv ROOT ROOT.oldln -s jstorm-ui-0.6.1 ROOTcd ../bin./startup.sh
Start JStorm
$JSTORM_HOME/bin/start.sh
原标题:jstorm集群部署
关键词:JS