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


3 Answer(s)


Hi Eva,

Please use the correct line:

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

Hope this helps.

Thanks.


Thanks but I am still getting the same error

 

 


Hi Eva,

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

Thanks