spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tathagata Das (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-2780) Create a StreamingContext.setLocalProperty for setting local property of jobs launched by streaming
Date Fri, 01 Aug 2014 00:41:39 GMT
Tathagata Das created SPARK-2780:
------------------------------------

             Summary: 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.2#6252)

Mime
View raw message