Changed to use the 1.0.x way to create SparkContext with SparkConf