Which of the following is python code thats reads data from HDFS file using pyspark?
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
No hints are availble for this assesment
Answer is not availble for this assesment
Please login to comment
2 Comments
whats the difference between these 2 options :
var mydata = sc.textFile("/data/mr/wordcount/input/")
mydata = sc.textFile("/data/mr/wordcount/input/")
Both use the sc context of spark provided by pyspark
1 Upvote ShareFirst one is in scala.
Upvote Share