What is sc textfile?



What is sc textfile?..

Answer / 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

More Apache Spark Interview Questions

What is the need for Spark DAG?

1 Answers  


What are the functions of "Spark Core"?

1 Answers  


How is transformation on rdd different from action?

1 Answers  


What is spark reducebykey?

1 Answers  


List the benefits of Spark over MapReduce.

1 Answers  


Define the level of parallelism and its need in spark streaming?

1 Answers  


Name three data source available in SparkSQL

1 Answers  


What is spark configuration?

1 Answers  


What are the types of Apache Spark transformation?

1 Answers  


What port does spark use?

1 Answers  


Who invented the first spark plug?

1 Answers  


How spark is used in hadoop?

1 Answers  


Categories