I am trying to adapt the recursive method (along with the example) proposed in Recursive method call in Apache Spark . However, I get the following type mismatch error when i call the method RecursiveParentLookup.findUltimateParent():
error: type mismatch;
found : org.apache.spark.rdd.RDD[Person]
required: org.apache.spark.rdd.RDD[Person]
val result = RecursiveParentLookup.findUltimateParent(input).collect()
Thanks in advance