jstorm 2.4.0部署
2017-10-25 本文已影响0人
曰十西言
- zookeeper部署
1)下载zookeeper
cd /data
wget https://archive.apache.org/dist/zookeeper/stable/zookeeper-3.4.10.tar.gz
tar -xvf zookeeper-3.4.10.tar.gz
ln -s zookeeper-3.4.10 zookeeper
cd zookeeper
mv conf/zoo_sample.cfg conf/zoo.cfg
mkdir -p data/logs
2)修改zookeeper配置(conf/zoo.cfg)
dataDir=/data/zookeeper/data
dataLogDir=/data/zookeeper/data/logs
3)启动zookeeper
bin/zkServer.sh start
- jstorm部署
1)下载jstorm
cd /data
wget https://github.com/alibaba/jstorm/releases/download/2.4.0/jstorm-2.4.0.tgz
tar -xvf jstorm-2.4.0.tgz
ln -s jstorm-2.4.0 jstorm
2)修改环境变量(/etc/profile)
export JSTORM_HOME=/data/jstorm
export PATH=$PATH:$JSTORM_HOME/bin
3)修改jstorm配置
storm.zookeeper.servers:
- "127.0.0.1"
nimbus.host: "127.0.0.1"
supervisor.slots.ports:
- 6800
4)启动
nohup jstorm nimbus &
nohup jstorm supervisor &
- 部署jstorm-ui
wget http://mirrors.aliyun.com/apache/tomcat/tomcat-8/v8.5.23/bin/apache-tomcat-8.5.23.tar.gz
tar -xvf apache-tomcat-8.5.23.tar.gz
ln -s apache-tomcat-8.5.23 tomcat8
cd tomcat8
cp /data/jstorm/jstorm-ui-2.4.0.war webapps
bin/startup.sh