Demo entry 6658576

test

   

Submitted by eee on Nov 07, 2017 at 15:01
Language: Java. Code size: 204 Bytes.

JavaRDD<String> inputRDD = sc.textFile(log.txt);
JavaRDD<String> errorRDD = inputRDD.filter(
	new Function<String, Boolean>(){
		public Boolean call(String x) { return x.contains("error") }
	}
);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).