WindowDaemon App{
      =SparkConf().setMaster().setAppName()
      =StreamingContext(,())
      =.socketTextStream(,)
      .flatMap(_.split()).map((_,)).reduceByKeyAndWindow((v1:Int,v2:Int)=>{v1+v2},(),())
       .print()
       .start()
       .awaitTermination()
}