spark-operator icon indicating copy to clipboard operation
spark-operator copied to clipboard

Provide a prefix for executor's pods

Open TKul6 opened this issue 1 year ago • 1 comments

HI,

I'm using spark-on-k8-operator to run multiple spark applications on the same Kubernetes cluster at the same time. I have a couple of spark job that runs simultaneously and I want to understand for each driver pod, what are a the associated executor pods.

I can see there is some uuid associated with each executor and I wanted to know if there is a way for me to provide this uuid, or to provide a better prefix (including a uuid).

Alternatively, if there is a way to connect between the uuid in the executor pod's name to the associated driver it would be enough for me.

Thanks.

TKul6 avatar Jan 28 '24 15:01 TKul6

You can use this Spark config to set a prefix for your executor pods. spark.kubernetes.executor.podNamePrefix

Spark will set a label called spark-app-id on the drivers and executors with a random uuid. This label value will be the same for driver and its associated executors. Let me know if this helps!

rkrao89 avatar Feb 05 '24 01:02 rkrao89

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 25 '24 00:07 github-actions[bot]

This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.

github-actions[bot] avatar Aug 14 '24 04:08 github-actions[bot]