Prasanth Kothuri
02/21/2023, 6:05 PM+ echo 'Non-spark-on-k8s command provided, proceeding in pass-through mode...'
Non-spark-on-k8s command provided, proceeding in pass-through mode...
+ CMD=("$@")
+ exec /usr/bin/tini -s -- python -m prefect.engine
[FATAL tini (14)] exec python failed: No such file or directory
looks like the image should have some mandatory software ? do I need to install prefect inside this image? are the pre-requisites documented anywhere ?Nate
02/21/2023, 6:54 PMtini
isn't installed on whatever image you're usingPrasanth Kothuri
02/21/2023, 7:29 PMroot@dd6eb75ffb4d:/# which tini
/usr/bin/tini
i think it doesn't have python, has python3, I can do the following
ln -s /usr/bin/python3 /usr/bin/python
my worry is what else is required, does the image need prefect to be installed ?Nate
02/21/2023, 7:36 PMdoes the image need prefect to be installed ?yes, otherwise you won't be able to invoke the engine here
python -m prefect.engine
unless you have specific requirements that conflict with prefect base images, I generally find it easiest to start from a prefect base image like prefecthq/prefect:2.8.2-python3.10
and then install whatever other things your flow will need on top of that, since prefect images will have everything you need to run a flowPrasanth Kothuri
02/21/2023, 8:25 PMpip3 install prefect==2.8.2 && \
pip3 install s3fs && \
pip3 install prefect_shell && \