score:0

You need to import the missing libraries like below

import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.function.FlatMapFunction;
import org.apache.spark.api.java.function.Function2;
import org.apache.spark.api.java.function.PairFunction;

Eclipse provides shortcut Ctrl+Shft+O for getting all missing imports.


Related Query

More Query from same tag