What is the main purpose of SparkContext in a Spark application?
Answer
To connect to the Spark cluster and create RDDs
Explanation
SparkContext is the entry point for Spark functionality. It connects to a Spark cluster, and can be used to create RDDs, accumulators, and broadcast variables.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
Which command is used to create a new table in Hive?
View question →
What is the purpose of 'lazy evaluation' in Spark?
View question →
Which of the following is NOT a daemon typically running on a Hadoop DataNode?
View question →
What is the primary role of the NodeManager in YARN?
View question →
What does the command 'hadoop fs -rm -r /user/data' do?
View question →
What is the purpose of the '--target-dir' argument in Sqoop import?
View question →
QuestionBack to list