pyspark.SparkContext.getOrCreate¶
-
classmethod
SparkContext.
getOrCreate
(conf=None)[source]¶ Get or instantiate a SparkContext and register it as a singleton object.
- Parameters
- conf
pyspark.SparkConf
, optional
- conf
SparkContext.
getOrCreate
(conf=None)[source]¶Get or instantiate a SparkContext and register it as a singleton object.
pyspark.SparkConf
, optional