I'm writing a test program in java and would like to parallelize a list object.
SparkSession spark = SparkSession
.builder()
.master("local[*]")
.appName("JavaWordCount")
.getOrCreate();
System.out.println("hello");
List<String> l = new ArrayList<>(5);
l.add("view.txt");
spark.sparkContext().parallelize(l,1,"test");
The method parallelize(Seq, int, ClassTag) in the type SparkContext is not applicable for the arguments (List, int, String)
I'm not sure what would be the third parameter - class Tag