Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Secret for shipping local dependencies gets created when no local file is used #556

@liyinan926

Description

@liyinan926

I noticed that a secret named with suffix -submitted-files gets created even when no local file dependency is used. Below is part of the spark-submit command I used. Both the jar files specified through --jars and the main application jar are remote dependencies. My understanding is such a secret should only be created when no RSS gets specified and there's local files to ship to the driver/executors.

bin/spark-submit \
...
--jars http://central.maven.org/maven2/com/databricks/spark-avro_2.11/4.0.0/spark-avro_2.11-4.0.0.jar,http://central.maven.org/maven2/com/google/guava/guava/19.0/guava-19.0.jar
...
gs://spark-k8s/jars/app.jar

Below is the result of running kubectl get secrets.

ynli-macbookpro:~ ynli$ kubectl get secrets
NAME                                                     TYPE                                  DATA      AGE
default-token-9ddgs                                      kubernetes.io/service-account-token   3         5d
spark-09e8db9d3478410ab023d7907ea5ef6f-submitted-files   Opaque                                0         12m

@foxish @mccheah

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions