spark-master 高可用測(cè)試:
創(chuàng)新互聯(lián)建站主要從事做網(wǎng)站、成都做網(wǎng)站、網(wǎng)頁(yè)設(shè)計(jì)、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)嫩江,十余年網(wǎng)站建設(shè)經(jīng)驗(yàn),價(jià)格優(yōu)惠、服務(wù)專業(yè),歡迎來(lái)電咨詢建站服務(wù):028-86922220
[spark-m]
172.20.101.157 sparkname=master01
172.20.101.164 sparkname=master02
172.20.101.165 sparkname=master03
[spark-s]
172.20.101.160 sparkname=slave01
172.20.101.166 sparkname=slave02
172.20.101.167 sparkname=slave03
[zookeeper]
172.20.101.157 myid=1
172.20.101.164 myid=3
172.20.101.165 myid=2
[root@kubm-03 ~]# tailf /var/log/spark/spark-root-org.apache.spark.deploy.master.Master-1-kubm-03.out
.......
19/07/18 11:11:59 INFO ZooKeeperLeaderElectionAgent: We have gained leadership
19/07/18 11:11:59 INFO Master: I have been elected leader! New state: ALIVE
發(fā)現(xiàn)第1臺(tái)未發(fā)現(xiàn)其它節(jié)點(diǎn),狀態(tài)選舉為 leader
[root@kubm-02 ~]# sh /usr/local/spark-2.4.3-bin-hadoop2.7/sbin/start-master.sh
.......
19/07/18 11:17:52 INFO ConnectionStateManager: State change: CONNECTED
狀態(tài)選舉為 CONNECTED
[root@kubm-01 ~]# sh /usr/local/spark-2.4.3-bin-hadoop2.7/sbin/start-master.sh
.。。。。
19/07/18 11:15:09 INFO ConnectionStateManager: State change: CONNECTED
狀態(tài)選舉為 CONNECTED
[root@kubm-03 ~]# sh /usr/local/spark-2.4.3-bin-hadoop2.7/sbin/stop-master.sh
[root@kubm-01 ~]#
19/07/18 11:19:33 INFO ZooKeeperLeaderElectionAgent: We have gained leadership
19/07/18 11:19:33 INFO Master: I have been elected leader! New state: ALIVE