I am using spark over emr and writing a pyspark script, I am getting an error when trying to
from pyspark import SparkContext sc = SparkContext() >
from pyspark import SparkContext sc = SparkContext()
Try to install spark 2.4.5 version, and set spark home path to this version. Even I faced the issue after changing the version, it got resolved for me.