摘录官网: spark on yarn 与 mesos standalone 区别
UnlikeSpark standaloneandMesosmodes, in which the master’s address is specified in the--masterparameter, in YARN mode the ResourceManager’s address is picked up from the Hadoop configuration. Thus, the--masterparameter isyarn.