Jack Sa
Jack Sa

Reputation: 339

Spark Error - Value Text file not a member of org.apache.spark.sparkcontext

I have just started with Apache Spark. When I try to RDD a File I get the

error :
Value Textfile not a member of org.apache.spark.SparkContext. 

This is what I typed :

val data1 = sc.textfile("README.md")

I have AmazonEMR with Spark on it.

Upvotes: 5

Views: 5979

Answers (1)

Jack Sa
Jack Sa

Reputation: 339

Ok Just found that is case sensitive. that needs to be textFile (with F Cap). I hope this will help someone.

Upvotes: 5

Related Questions