Update APIs based on spark stack 0.9 for scala 2.10.3