var conf : SparkConf = new SparkConf().setMaster("local[*]").setAppName("WordCount")
var sc = new SparkContext(conf)
sc.textFile("/input")
.flatMap(_.split(" "))
.map((_,1))
.reduceByKey(_+_)
.saveAsTextFile("/output")
sc.stop()
05-27
373

07-24
390
