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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值