kubeflow/spark-operator

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

Closed this issue · 5 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 :(

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"

Please check the version

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

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.".

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.

This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.