启动storm集群(HA)
本博文情况是
master(主) nimbus
slave1(主)(从) nimbus supervisor
slave2(从) supervisor
1、先在master上启动
nohup bin/storm nimbus >/dev/null 2>&1 &
[[email protected] storm]$ jps 2374 QuorumPeerMain 7862 Jps 3343 AzkabanWebServer 2813 ResourceManager 3401 AzkabanExecutorServer 2515 NameNode 2671 SecondaryNameNode [[email protected] storm]$ nohup bin/storm nimbus >/dev/null 2>&1 & [1] 7876 [[email protected] storm]$ jps 2374 QuorumPeerMain 7905 Jps 7910 config_value 3343 AzkabanWebServer 2813 ResourceManager 3401 AzkabanExecutorServer 2515 NameNode 2671 SecondaryNameNode [[email protected] storm]$
2、再在slave1上启动
nohup bin/storm nimbus >/dev/null 2>&1 &
[[email protected] storm]$ jps 2421 NodeManager 2342 DataNode 4892 Jps 2274 QuorumPeerMain [[email protected] storm]$ nohup bin/storm nimbus >/dev/null 2>&1 & [1] 4904
[[email protected] storm]$ jps
2421 NodeManager
5244 Jps
2342 DataNode
5135 nimbus
5234 config_value
2274 QuorumPeerMain
3、先在slave1和slave2上启动
nohup bin/storm supervisor >/dev/null 2>&1 &
[[email protected] storm]$ jps 4868 Jps 4089 supervisor 2365 NodeManager 2291 DataNode 2229 QuorumPeerMain [[email protected] storm]$ nohup bin/storm supervisor >/dev/null 2>&1 & [1] 4903 [[email protected] storm]$ jps 4918 Jps 4089 supervisor 2365 NodeManager 2291 DataNode 2229 QuorumPeerMain [[email protected] storm]$
4、在master上启动
nohup bin/storm ui>/dev/null 2>&1 &
[[email protected] storm]$ jps 8550 config_value 2374 QuorumPeerMain 8113 supervisor 3343 AzkabanWebServer 2813 ResourceManager 8560 Jps 3401 AzkabanExecutorServer 8524 config_value 8372 core 2515 NameNode 2671 SecondaryNameNode [[email protected] storm]$ nohup bin/storm ui>/dev/null 2>&1 & [7] 8582 [[email protected] storm]$ jps 2374 QuorumPeerMain 8113 supervisor 8623 Jps 3343 AzkabanWebServer 2813 ResourceManager 3401 AzkabanExecutorServer 8372 core 2515 NameNode 8597 config_value 2671 SecondaryNameNode 8613 config_value [[email protected] storm]$
5、在master、slave1和slave2上启动
nohup bin/storm logviwer >/dev/null 2>&1 &
启动storm集群(非HA)
本博文情况是
master(主) nimbus
slave1(主)(从) supervisor
slave2(从) supervisor
1、先在master上启动
nohup bin/storm nimbus >/dev/null 2>&1 &
[[email protected] storm]$ jps 2374 QuorumPeerMain 7862 Jps 3343 AzkabanWebServer 2813 ResourceManager 3401 AzkabanExecutorServer 2515 NameNode 2671 SecondaryNameNode [[email protected] storm]$ nohup bin/storm nimbus >/dev/null 2>&1 & [1] 7876 [[email protected] storm]$ jps 2374 QuorumPeerMain 7905 Jps 7910 config_value 3343 AzkabanWebServer 2813 ResourceManager 3401 AzkabanExecutorServer 2515 NameNode 2671 SecondaryNameNode
9743 nimbus [[email protected] storm]$
2、先在slave1和slave2上启动
nohup bin/storm supervisor >/dev/null 2>&1 &
[[email protected] storm]$ jps 4868 Jps 4089 supervisor 2365 NodeManager 2291 DataNode 2229 QuorumPeerMain [[email protected] storm]$ nohup bin/storm supervisor >/dev/null 2>&1 & [1] 4903 [[email protected] storm]$ jps 4918 Jps 4089 supervisor 2365 NodeManager 2291 DataNode 2229 QuorumPeerMain [[email protected] storm]$
3、在master上启动
nohup bin/storm ui>/dev/null 2>&1 &
[[email protected] storm]$ jps 8550 config_value 2374 QuorumPeerMain 8113 supervisor 3343 AzkabanWebServer 2813 ResourceManager 8560 Jps 3401 AzkabanExecutorServer 8524 config_value 8372 core 2515 NameNode 2671 SecondaryNameNode [[email protected] storm]$ nohup bin/storm ui>/dev/null 2>&1 & [7] 8582 [[email protected] storm]$ jps 2374 QuorumPeerMain 8113 supervisor 8623 Jps 3343 AzkabanWebServer 2813 ResourceManager 3401 AzkabanExecutorServer 8372 core 2515 NameNode 8597 config_value 2671 SecondaryNameNode 8613 config_value [[email protected] storm]$
4、在master、slave1和slave2上启动
nohup bin/storm logviwer >/dev/null 2>&1 &
本文转自大数据躺过的坑博客园博客,原文链接:http://www.cnblogs.com/zlslch/p/7247483.html,如需转载请自行联系原作者