SPARK_YARN_APP_JAR is no longer used in master branch.  It was unneeded. If you are using client mode you should use distributed cache or add jar to distribute your jar.