Add the lifecycle interface
merge master
Merge branch 'master' of https://github.com/apache/spark into SPARK-1477
declare Service in scala
fix compile error