spark-operator icon indicating copy to clipboard operation
spark-operator copied to clipboard

SparkApplication in version "v1beta2" cannot be handled as a SparkApplication

Open morningcafe opened this issue 10 months ago • 3 comments

I just follow quick start guild and fail at step 2: https://github.com/kubeflow/spark-operator/blob/master/docs/quick-start-guide.md

kubectl apply -f examples/spark-pi.yaml

somebody please help :(

morningcafe avatar Apr 12 '24 04:04 morningcafe

Error from server (BadRequest): error when creating "examples/spark-pi.yaml": SparkApplication in version "v1beta2" cannot be handled as a SparkApplication: strict decoding error: unknown field "spec.sparkUIOptions.serviceLabels"

morningcafe avatar Apr 12 '24 04:04 morningcafe

Please check the version

kubectl get crd sparkapplications.sparkoperator.k8s.io -o yaml

bharathk005 avatar Apr 17 '24 23:04 bharathk005

I removed the field "spec.sparkUIOptions.serviceLabels", and it worked. The field is optional but I am not sure what effect is it going to have on the application. In the documentation, it says "ServiceLables is a map of key,value pairs of labels that might be added to the service object.".

wajeehulhassanvii avatar Jun 28 '24 06:06 wajeehulhassanvii

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Sep 26 '24 08:09 github-actions[bot]