error "value words is not a member of org.apache.spark.SparkContext)



0

i am getting that error in spark-shell when i run val words = sc.words.txt("hdfs://192.168.75.133:9000/words/sh.txt")"

error "value words is not a member of org.apache.spark.SparkContext)?

How do I fix this?  Please see attached core-site.xml file and spark-shell.  

Thanks.



3 Answer(s)


0

Hi Eva,

Please use the correct line:

val words = sc.words("hdfs://192.168.75.133:9000/words/sh.txt");

Hope this helps.

Thanks.


0

Thanks but I am still getting the same error

 

 


0

Hi Eva,

Could you please share the screenshot, when you enter the above mention command.

Thanks