I am trying to use spark sql in java API, below simple stuff (copied from official guide: https://spark.apache.org/docs/latest/rdd-programming-guide.html) would not make intelij happy.
It complains the ClassTag thing, which i do not know how to create it or let it automatically imported or something.
List<Integer> data = Arrays.asList(1, 2, 3, 4, 5);
JavaRDD<Integer> distData = sc.parallelize(data);
I understand it wants to use 3 arguments
public <T> RDD<T> parallelize(final Seq<T> seq, final int numSlices, final ClassTag<T> evidence$1) {
but how can i get this evidence$1 thing?
the official example did not have the argument either
Please help on this.