Closed luciferksh closed 7 years ago
curl http://127.0.0.1:8003/api/v1/namespaces/sidartha-spark-cluster/pods is working fine.
Hi @ash211 , Could you please help.
Is that the exact command you're running? The & KUBERNETES_TRUST_CERTIFICATES=true.
looks misplaced.
Where are you expecting the sidartha-spark-cluster
user to come from?
@ash211 "& KUBERNETES_TRUST_CERTIFICATES=true." was a typo. Actually i tried without this parameter. The "sidartha-spark-cluster" is the namespace which i have created in our k8s cluster.
It looks like you haven't specified any authentication parameters to the spark-submit command. Have you looked at any of the properties starting with spark.kubernetes.authenticate
and see if any apply to you? https://github.com/apache-spark-on-k8s/spark/blob/branch-2.2-kubernetes/docs/running-on-kubernetes.md#spark-properties
@mccheah Thanks for your reply. The issue was with our k8s cluster configuration.
I have tried to submit spark job using spark-submit in our k8s cluster. The authentication was failed. I have tried with kubectl proxy also. It was not working. Is anyone try to add access token in spark-submit for k8s.
getting this error