0


linux单机部署storm

linux单机部署storm

  1. cd /data
  2. #下载wget http://mirror.bit.edu.cn/apache/storm/apache-storm-1.2.2/apache-storm-1.2.2.tar.gz
  3. #解压tar -zxvf apache-storm-1.2.2.tar.gz
  4. cd apache-storm-1.2.2
  5. vim conf/storm.yaml 配置
  6. storm.local.dir: "/tmp"
  7. storm.zookeeper.servers:
  8. - "192.168.1.53"
  9. nimbus.host: "127.0.0.1"
  10. supervisor.slots.ports:
  11. - 6700
  12. - 6701
  13. - 6702
  14. - 6703
  15. 启动
  16. 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
  17. jps

访问 http://192.168.1.51:8080/index.html

修改配置

  1. cd /usr/local/storm
  2. cat conf/storm.yaml
  3. storm.zookeeper.servers:
  4. - "192.168.1.51"
  5. storm.zookeeper.port: 2181
  6. nimbus.seeds: ["192.168.1.51"]
  7. supervisor.slots.ports:
  8. - 6700
  9. storm.local.dir: /usr/local/storm/data
  10. ui.port: 8081

启动java项目

  1. 启动项目
  2. bin/storm jar xy-netcar-charging-0.0.1-SNAPSHOT-jar-with-dependencies.jar com.xy.netcar.charging.StormStart cluster
  3. jps -v
  4. jps -v |grep storm
  5. 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

标签: storm linux

本文转载自: https://blog.csdn.net/yinjl123456/article/details/124069783
版权归原作者 beyond阿亮 所有, 如有侵权,请联系我们删除。

“linux单机部署storm”的评论:

还没有评论