SparkContext.
getOrCreate
Get or instantiate a SparkContext and register it as a singleton object.
SparkContext
New in version 1.4.0.
SparkConf
SparkConf that will be used for initialization of the SparkContext.
current SparkContext, or a new one if it wasn’t created before the function call.
Examples
>>> SparkContext.getOrCreate() <SparkContext ...>