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

Make SMV easy to import and use #1489

Open
3 tasks
laneb opened this issue Nov 8, 2018 · 5 comments
Open
3 tasks

Make SMV easy to import and use #1489

laneb opened this issue Nov 8, 2018 · 5 comments

Comments

@laneb
Copy link
Contributor

laneb commented Nov 8, 2018

Goal

I should be able to do the following

$ pip install smv
$ python
>>> import smv
>>> app = smvApp.createInstance([], None)
>>> app.runModule("foo")

without having to mess around and add things to my class path or sys.path

  • The smv package should handle injecting the fat jar
  • smv should try to add pyspark and py4j to the sys.path if they're not there (can consider https://github.com/minrk/findspark)
  • Suppress Python bytecode cache via sys.dont_write_bytecode instead of via PYTHONDONTWRITEBYTECODE env var
@jacobdr
Copy link
Contributor

jacobdr commented Nov 8, 2018 via email

@laneb
Copy link
Contributor Author

laneb commented Nov 12, 2018

Needs a small whiteboard session I think. These are definitely interrelated goal.

@ninjapapa
Copy link
Contributor

@laneb is the target to still use spark-submit or not?

@laneb
Copy link
Contributor Author

laneb commented Nov 12, 2018

Not necessarily. I think jobs that need to run in yarn cluster mode will still have to be submitted via spark-submit, but we may be able to shift the burden to users.

@laneb
Copy link
Contributor Author

laneb commented Nov 12, 2018

@jacobdr What's the goal that motivates removing the bash scripts? Just to simplify arg parsing?

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

3 participants