Followed http://spark-project.org/docs/latest/quick-start.html