SPARK-1064. Make it possible to run on YARN without bundling Hadoop jars in Spark assembly