79226317

Date: 2024-11-26 10:41:11
Score: 2.5
Natty:
Report link

I know it's been way too long since the question was posted. But, answering in case if someone lands here with the same error.

This error happens, when you have imported the SparkSession but haven't created a spark application.

Here is how you can fix this error.

from pyspark.sql import SparkSession spark=SparkSession.builder.appName('prac').getOrCreate()

Reasons:
  • Blacklisted phrase (1): I know it's been
  • No code block (0.5):
  • Low reputation (1):
Posted by: AKK