You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sina Madani (JIRA)" <ji...@apache.org> on 2018/06/13 12:22:00 UTC

[jira] [Commented] (SPARK-650) Add a "setup hook" API for running initialization code on each executor

    [ https://issues.apache.org/jira/browse/SPARK-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16511033#comment-16511033 ] 

Sina Madani commented on SPARK-650:
-----------------------------------

I too have this problem. It seems that Apache Flink solves this quite nicely by having "RichFunction" variants for operations like map, filter, reduce etc. A RichFunction, such as RichMapFunction, provides open(Configuration parameters) and close() methods which can be used to run setup and teardown code once per worker and also initialise the worker from primitive key-value pairs.

> Add a "setup hook" API for running initialization code on each executor
> -----------------------------------------------------------------------
>
>                 Key: SPARK-650
>                 URL: https://issues.apache.org/jira/browse/SPARK-650
>             Project: Spark
>          Issue Type: New Feature
>          Components: Spark Core
>            Reporter: Matei Zaharia
>            Priority: Minor
>
> Would be useful to configure things like reporting libraries



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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