Simplified further, using SparkConf to pass the configuration