SPARK-1652: Spark submit should fail gracefully if YARN not enabled