Updating syntax for spark 0.8.0