-
I have some trouble running Spark tasks on Flyte.
Steps I did:
Then I triggered it from WebUI
In Web UI same error:
I have followed the steps in https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/kubernetes/k8s_spark/index.html#step-2-environment-setup Except for step 2. "Build Spark image" Isn't the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think your example code doesn't have requirements.in
Also, if Java is installed, set Dockerfile
We also suggest you to try step 7 & 8 in the spark example here: https://docs.flyte.org/en/latest/deployment/plugin_setup/k8s/spark_operator.html#deployment-plugin-setup-k8s-spark-operator That will validate your spark environment, and then follow the Flytesnacks example here: https://github.com/flyteorg/flytesnacks/tree/master/cookbook/integrations/kubernetes/k8s_spark @evalsocket |
Beta Was this translation helpful? Give feedback.
I think your example code doesn't have
flytekitplugins-spark
. Please check the example: https://github.com/flyteorg/flytesnacks/blob/master/cookbook/integrations/kubernetes/k8s_spark/requirements.inrequirements.in
Also, if Java is installed, set
JAVA_HOME
env variable in the Dockerfile, using a docker file like this:https://github.com/flyteorg/flytesnacks/blob/master/cookbook/integrations/kubernetes/k8s_spark/Dockerfile which has java installed
Dockerfile