toDF() method is not recognized in Eclipse

apache-spark
scala

#1

I’m developing a mini project in Spark-Scala in Eclipse, where I’m trying to convert an RDD into a data frame but it is showing red color under line. Searched on google a lot and tried all the remedies that I got on some other communities, but no use.Please suggest. I’ve imported all the traits and classes that are required. Please let me know what mistake I’m here. Please comment any other information required.


#2

could you share the code snippet instead of the screen shot? it could make debugging easier.