生产环境下SparkMaster选择使用ZooKeeper做HA,如果当前集群Master失败,ZooKeeper会在Standby模式下的master中选出新的集群管理者。新选举的Master会从ZooKeeper中读取集群的Worker、DriverClient、Application等元数据信息进行恢复并和Worker、DriverClient、Application沟通,变成ACTIVE的状态。