linux单机部署storm
Posted beyond阿亮
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux单机部署storm相关的知识,希望对你有一定的参考价值。
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|grep 80
参考链接:
https://www.cnblogs.com/freeweb/p/5234139.html
https://www.cnblogs.com/senlinyang/p/7832324.html
https://www.cnblogs.com/freeweb/p/5242631.html
以上是关于linux单机部署storm的主要内容,如果未能解决你的问题,请参考以下文章
storm单机运行报错 ERROR backtype.storm.daemon.executor -