Spark doesnt print outputs on the console within the map function
问题 I have a simple Spark application running on cluster mode. val funcGSSNFilterHeader = (x: String) => { println(!x.contains("servedMSISDN") !x.contains("servedMSISDN") } val ssc = new StreamingContext(sc, Seconds(batchIntervalSeconds)) val ggsnFileLines = ssc.fileStream[LongWritable, Text, TextInputFormat]("C:\\Users\\Mbazarganigilani\\Documents\\RA\\GGSN\\Files1", filterF, false) val ggsnArrays = ggsnFileLines .map(x => x._2.toString()).filter(x => funcGSSNFilterHeader(x)) ggsnArrays