For Spark on YARN, you can specify either a client thread or a yarn cluster. Yarn-client runs the driver program in the same JVM as the original scheme, while the yarn cluster runs the Spark driver in one of the NodeManager containers.
:
https://spark.apache.org/docs/1.1.0/running-on-yarn.html
, Spark YARN. Spark , YARN , . "-" , YARN.