I am using this command to create an RDD.
val myrdd =spark.read.textFile("movies_dataset.txt")
myrdd: org.apache.spark.sql.Dataset[String] = [value: string]--Dataset is same as RDD
But it is not working. It creates a DATASET(org.apache.spark.sql.Dataset) instead.