I tried to load the file using the following code:
textdata = sc.textfile(‘hdfs://localhost:9000 /file.txt’) Error message:
AttributeError:’SparkContext’ object has no attribute’textfil
I tried to load the file using the following code:
textdata = sc.textfile(‘hdfs://localhost:9000 /file.txt’) Error message:
AttributeError:’SparkContext’ object has no attribute’textfil