QuestionQ243

VerifiedApache Spark Architecture and Components

A developer creates a SparkSession:

spark = SparkSession.builder\  
.appName("Analytics Application")\  
.getOrCreate()  

Which statement best describes the spark SparkSession?

Explanation

getOrCreate() retrieves an existing SparkSession when one already exists; only when no valid existing session is available does it create a new SparkSession. appName sets the application name and does not determine session uniqueness.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!