Client模式 ,driver端和sparksubmit在一起 Cluster模式 ,diver端和sparksubmit没关系了,他是一个特殊的executor,叫做DirverWapper(他需要读取jar包,所以最好把jar包放到hdfs上) 通过http请求启动 spark程序