SparkContext.
getLocalProperty
Get a local property set in this thread, or null if it is missing. See setLocalProperty().
setLocalProperty()
New in version 1.0.0.
See also
SparkContext.setLocalProperty()