In what ways sparksession different from sparkcontext?
Answer Posted / Akash Tripathi
SparkSession and SparkContext are both entry points to Spark APIs, but there are some key differences between them: (1) SparkSession is the recommended entry point for new applications in Apache Spark 2.0 or later, as it manages the lifecycle of the session and provides a unified interface for configuring settings across various Spark APIs; (2) SparkContext is an older API that allows fine-grained control over configuration settings but requires manual management of the application's lifecycle.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers