spark-instrumented-optimizer/resource-managers/kubernetes
Jiaxin Shan f86a1b9590 [SPARK-30626][K8S] Add SPARK_APPLICATION_ID into driver pod env
### What changes were proposed in this pull request?
Add SPARK_APPLICATION_ID environment when spark configure driver pod.

### Why are the changes needed?
Currently, driver doesn't have this in environments and it's no convenient to retrieve spark id.
The use case is we want to look up spark application id and create application folder and redirect driver logs to application folder.

### Does this PR introduce any user-facing change?
no

### How was this patch tested?
unit tested. I also build new distribution and container image to kick off a job in Kubernetes and I do see SPARK_APPLICATION_ID added there. .

Closes #27347 from Jeffwan/SPARK-30626.

Authored-by: Jiaxin Shan <seedjeffwan@gmail.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
2020-01-24 12:00:30 -08:00
..
core [SPARK-30626][K8S] Add SPARK_APPLICATION_ID into driver pod env 2020-01-24 12:00:30 -08:00
docker/src/main/dockerfiles/spark [SPARK-29574][K8S] Add SPARK_DIST_CLASSPATH to the executor class path 2019-12-16 10:11:50 -08:00
integration-tests [INFRA] Reverts commit 56dcd79 and c216ef1 2019-12-16 19:57:44 -07:00