Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running function on all executors after completion of flow #144

Open
svmhdvn opened this issue Nov 5, 2018 · 1 comment
Open

Running function on all executors after completion of flow #144

svmhdvn opened this issue Nov 5, 2018 · 1 comment

Comments

@svmhdvn
Copy link
Contributor

svmhdvn commented Nov 5, 2018

Is there a way to register a function "callback" that runs on all executors in distributed mode? For example, I would like to flush a batched pipeline on all executors after the entire flow is finished. Currently, I'm calling OutputRow in my flow, but that only runs once and not on all my executors. Do also does a similar thing where it only runs on the driver, but not the executors. How can I force a function to run on all executors/agents, not just the driver?

@chrislusf
Copy link
Owner

This is not supported yet.

This can be done by extending Mapper and Reducer, returning a few initialization/cleanup functions. And then in gio/mapper.go and gio/reducer.go, calling those functions.

I will try to get to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants