This function may be used to get or instantiate a SparkContext and register it as a singleton object.
This function may be used to get or instantiate a SparkContext and register it as a singleton object. Because we can only have one active SparkContext per JVM, this is useful when applications may wish to share a SparkContext.
This method allows not passing a SparkConf (useful if just retrieving).
current SparkContext
(or a new one if wasn't created before the function call)
This function cannot be used to create multiple SparkContext instances even if multiple contexts are allowed.
This function may be used to get or instantiate a SparkContext and register it as a singleton object.
This function may be used to get or instantiate a SparkContext and register it as a singleton object. Because we can only have one active SparkContext per JVM, this is useful when applications may wish to share a SparkContext.
SparkConfig
that will be used for initialisation of the SparkContext
current SparkContext
(or a new one if it wasn't created before the function call)
This function cannot be used to create multiple SparkContext instances even if multiple contexts are allowed.
Find the JAR from which a given class was loaded, to make it easy for users to pass their JARs to SparkContext.
Find the JAR from which a given class was loaded, to make it easy for users to pass their JARs to SparkContext.
class that should be inside of the jar
jar that contains the Class, None
if not found
Find the JAR that contains the class of a particular object, to make it easy for users to pass their JARs to SparkContext.
Find the JAR that contains the class of a particular object, to make it easy for users to pass their JARs to SparkContext. In most cases you can call jarOfObject(this) in your driver program.
reference to an instance which class should be inside of the jar
jar that contains the class of the instance, None
if not found
The SparkContext object contains a number of implicit conversions and parameters for use with various Spark features.