In a multi tenant Kubernetes cluster, it will not always be the case that livy service account has access to all namespaces. Since Livy currently looks for job in all namespaces, it fails if the permission is not there for some namespace in cluster.
Ideally we should only look for job in the namespace it was submitted to. Relevant code is here, i think :
|
withRetry(kubernetesClient.getApplications().find(_.getApplicationTag.contains(appTag))) |
Also this,
|
client.pods.inAnyNamespace |