You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/01/18 11:17:39 UTC

[jira] [Resolved] (SPARK-2780) Create a StreamingContext.setLocalProperty for setting local property of jobs launched by streaming

     [ https://issues.apache.org/jira/browse/SPARK-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved SPARK-2780.
------------------------------
    Resolution: Won't Fix

> Create a StreamingContext.setLocalProperty for setting local property of jobs launched by streaming
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-2780
>                 URL: https://issues.apache.org/jira/browse/SPARK-2780
>             Project: Spark
>          Issue Type: Bug
>          Components: Streaming
>    Affects Versions: 1.0.0, 1.1.0
>            Reporter: Tathagata Das
>            Priority: Minor
>
> SparkContext.setLocalProperty makes all Spark jobs submitted using
> the current thread belong to the set pool. However, in Spark
> Streaming, all the jobs are actually launched in the background from a
> different thread. So this setting does not work. 
> Currently, there is a
> work around. If you are doing any kind of output operations on
> DStreams, like DStream.foreachRDD(), you can set the property inside
> that
> dstream.foreachRDD(rdd =>
>    rdd.sparkContext.setLocalProperty(...)
> )



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org