'Trying to create RDD from external dataset(word_list.txt) but getting error

valfile = sc. textFile("/Users/Downloads/word_list-1.txt")My_file: org.apache.spark.rdd. RDD[String] = /Users/Downloads/word_list-1.txt Mappartitions RDD[1] at textFile at <console>:23  

Getting an error:

';' expected but '=' found.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source