storm生产环境部署问题
生活随笔
收集整理的這篇文章主要介紹了
storm生产环境部署问题
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
2019獨角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
由于在正式生產(chǎn)環(huán)境上部署集群防火墻是不能關(guān)閉的,所以要幫storm中用到的端口在iptables中添加規(guī)則
是2.6的內(nèi)核這樣加:
vi?/etc/sysconfig/iptables -A?INPUT?-m?state?--state?NEW?-m?tcp?-p?tcp?--dport?????6700?????-j?ACCEPT -A?INPUT?-m?state?--state?NEW?-m?tcp?-p?tcp?--dport?????6701?????-j?ACCEPT -A?INPUT?-m?state?--state?NEW?-m?tcp?-p?tcp?--dport?????6702?????-j?ACCEPT -A?INPUT?-m?state?--state?NEW?-m?tcp?-p?tcp?--dport?????6703?????-j?ACCEPT #supervisor.slots.portssupervisor上能夠運(yùn)行workers的端口列表.每個worker占用一個端口,且每個端口只運(yùn)行一個w#orker.通過這項配置可以調(diào)整每臺機(jī)器上運(yùn)行的worker數(shù).(調(diào)整slot數(shù)/每機(jī)) -A?INPUT?-m?state?--state?NEW?-m?tcp?-p?tcp?--dport?????6704?????-j?ACCEPT? #此為nimbus.thrift.portnimbus的thrift監(jiān)聽端口默認(rèn)是6627? -A?INPUT?-m?state?--state?NEW?-m?tcp?-p?tcp?--dport?????6627?????-j?ACCEPT是3.1的內(nèi)核執(zhí)行它:
/sbin/iptables?-I?INPUT?-p?tcp?--dport?6627?-j?ACCEPTstorm.yaml配置如下:
?storm.zookeeper.servers:
? ? ?- "hadoop02"
? ? ?- "hadoop03"
? ? ?- "hadoop04"
#?
?nimbus.host: "hadoop01"
?ui.port: 38080
?storm.zookeeper.port: 2181
?storm.local.dir: "/home/common/storm/storm-0.9.5/data/"
?supervisor.slots.ports:
? ? - 6700
? ? - 6701
? ? - 6702
? ? - 6703
? ? - 6704
轉(zhuǎn)載于:https://my.oschina.net/u/2300159/blog/494081
新人創(chuàng)作打卡挑戰(zhàn)賽發(fā)博客就能抽獎!定制產(chǎn)品紅包拿不停!總結(jié)
以上是生活随笔為你收集整理的storm生产环境部署问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 这个真菌学名是甚?
- 下一篇: POI不同版本替换Word模板时的问题