Spark 4229 Create hadoop configuration in a consistent way