Support for Spark 1.0 configurations. 

To avoid deprecation warnings, we should use the new configs present in Spark 1.0.