SparkContext.
getOrCreate
Get or instantiate a SparkContext and register it as a singleton object.
pyspark.SparkConf