Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Bootstrap of bolts/spouts environment through scripts #31

Open
poros opened this issue Oct 18, 2014 · 2 comments
Open

Bootstrap of bolts/spouts environment through scripts #31

poros opened this issue Oct 18, 2014 · 2 comments
Labels

Comments

@poros
Copy link
Contributor

poros commented Oct 18, 2014

@anusha-r:

MRJob allows a bunch of options for users to customize the execution environment - eg: users can specify commands to be executed at startup, set env variables, upload python archives that have to be added to PYTHONPATH and so on.

For the hadoop environment, MRJob simply invokes an autogenerated script that performs all these tasks that the user specifies, and then invokes the actual python module to run.
Would it be possible to support something similar in Pyleus? For instance, the user could specify a shell script or some command to run at startup, before the python module is invoked. This will ensure changes to python path happen before we enter python land.

I have a partial workaround now, to execute a setup script during bolt initialization using call(..) API, but having pyleus let me customize the way my bolt module is invoked would be a better fix.

Moved from PYLEUS-86

@poros poros added the feature label Oct 18, 2014
@darionyaphet
Copy link

could setting python path in config file ? Or make a pre-load script

@patricklucas
Copy link
Contributor

@anusha-r: What extra python modules would you need that can't be included in the virtualenv?

I guess a better question is, is this an optimization, or something you can't otherwise do with requirements.txt?

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

No branches or pull requests

3 participants