Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR SparkKubernetesApp: Couldn't refresh Kubernetes state #83

Open
pupucat opened this issue Dec 27, 2022 · 1 comment
Open

ERROR SparkKubernetesApp: Couldn't refresh Kubernetes state #83

pupucat opened this issue Dec 27, 2022 · 1 comment

Comments

@pupucat
Copy link

pupucat commented Dec 27, 2022

I'm trying to run a spark app through Livy API

curl -s -k -H 'Content-Type: application/json' -X POST \
  -d '{
        "name": "SparkPi-01",
        "className": "org.apache.spark.examples.SparkPi",
        "numExecutors": 2,
        "file": "local:///opt/spark/examples/jars/spark-examples_2.12-3.0.1.jar",
        "args": ["10000"],
        "conf": {
            "spark.kubernetes.namespace": "livy"
        }
      }' "http://localhost:8998/batches"

I can see the spark-driver POD running and complete correctly. But seems the Livy Server can't get the state of application, log said:

22/12/27 03:38:29 ERROR SparkKubernetesApp: Couldn't refresh Kubernetes state
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://kubernetes.default.svc.cluster.local/apis/extensions/v1beta1/namespaces/livy/ingresses?labelSelector=spark-app-tag%3Dlivy-batch-0-dcfPwsoJ. Message: 404 page not found

I tried other spark applications, all with same result, the spark app can run and complete, but Livy can't query its state.

Do I miss some configurations?

@hadenpereira
Copy link

hadenpereira commented Jun 30, 2023

Looks like the api has been deprectaed as of v1.19

The correct path for fetching the ingress should be
kubernetes.default.svc.cluster.local/apis/networking.k8s.io/v1/namespaces/livy/ingresses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants