Apache Spark Basics with Python

21 / 86

Which of the following is python code thats reads data from HDFS file using pyspark?


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    Share

First one is in scala.

  Upvote    Share