Skip to content

Spark on Kubernetes job fails if service account doesn't have permission to all namespaces. #461

@ashokkumarrathore

Description

@ashokkumarrathore

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions