yarn模式又分为yarn cluster模式和yarn client模式:
用spark-submit命令提交时, 用--master yarn --deploy-mode cluster或者--master yarn --deploy-mode client
原文:https://www.cnblogs.com/gouhaiping/p/11887729.html