adspace


What is sc textfile?

Answer Posted / Anupriya Ekka

In Apache Spark, SparkContext (sc) creates a new Spark Context object and sc.textFile() reads a file as an RDD (Resilient Distributed Dataset) of lines of text.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the advantage of Parquet file in Apache Spark?

525


What is meant by Transformation? Give some examples.

385


Explain how RDDs work with Scala in Spark

411


What is the latest version of spark?

343