is there a way to reference extra libraries (eithe...
# ask-metaflow
w
is there a way to reference extra libraries (either local directories or 3rd party libraries) using the metaflow pyspark plugin? ETA: I see it's marked as a TODO here. Guess it doesn't work right now?
Will local files work if we pass
--py-files=METAFLOW_CODE_URL
to
sparkSubmitParameters
?
v
probably not out of the box. Would you need to include local py files or 3rd party modules?
w
yes, we want to include both local files and 3rd party modules
I figured out how to do it with the use of a custom docker image and passing a bunch of extra arguments to the spark config. I'll send you a PR once I clean up the code. Would be nice to do it without the custom image -- maybe you'll have some ideas
v
totally. I should be able to share some ideas by the end of the week
w
here it is: https://github.com/outerbounds/metaflow-pyspark/pull/1 thinking about it some more, it might be possible to get rid of the docker image by using
venv-pack
with
spark.archives
and bundling some binaries/scripts in it