linux单机部署storm
cd /data
#下载wget http://mirror.bit.edu.cn/apache/storm/apache-storm-1.2.2/apache-storm-1.2.2.tar.gz
#解压tar -zxvf apache-storm-1.2.2.tar.gz
cd apache-storm-1.2.2
vim conf/storm.yaml 配置
storm.local.dir: "/tmp"
storm.zookeeper.servers:
- "192.168.1.53"
nimbus.host: "127.0.0.1"
supervisor.slots.ports:
- 6700
- 6701
- 6702
- 6703
启动
nohup bin/storm nimbus >> lognimbus.file 2>&1&nohup bin/storm supervisor >> logsupervisor.file 2>&1&nohup bin/storm ui >> logui.file 2>&1&ps aux|grep storm
jps
访问 http://192.168.1.51:8080/index.html
修改配置
cd /usr/local/storm
cat conf/storm.yaml
storm.zookeeper.servers:
- "192.168.1.51"
storm.zookeeper.port: 2181
nimbus.seeds: ["192.168.1.51"]
supervisor.slots.ports:
- 6700
storm.local.dir: /usr/local/storm/data
ui.port: 8081
启动java项目
启动项目
bin/storm jar xy-netcar-charging-0.0.1-SNAPSHOT-jar-with-dependencies.jar com.xy.netcar.charging.StormStart cluster
jps -v
jps -v |grep storm
nohup bin/storm nimbus >/dev/null 2>&1&nohup bin/storm supervisor >/dev/null 2>&1&nohup bin/storm logviewer >/dev/null 2>&1&nohup bin/storm ui >/dev/null 2>&1&netstat -tunlp|grep80
参考链接:
https://www.cnblogs.com/freeweb/p/5234139.html
https://www.cnblogs.com/senlinyang/p/7832324.html
https://www.cnblogs.com/freeweb/p/5242631.html
版权归原作者 beyond阿亮 所有, 如有侵权,请联系我们删除。