pyspark.SparkContext.setLocalProperty¶
-
SparkContext.
setLocalProperty
(key: str, value: str) → None[source]¶ Set a local property that affects jobs submitted from this thread, such as the Spark fair scheduler pool.
New in version 1.0.0.
- Parameters
- keystr
The key of the local property to set.
- valuestr
The value of the local property to set.
See also
Notes
If you run jobs in parallel, use
pyspark.InheritableThread
for thread local inheritance.