Indent seems wrong here. Also, instead of using System.setProperty, it would be better to create a SparkConf and pass it to SparkContext.