[K8S] Update Comment for k8s applicationId#24791
[K8S] Update Comment for k8s applicationId#24791zhangmeng0426 wants to merge 3 commits intoapache:masterfrom zhangmeng0426:master
Conversation
|
Can one of the admins verify this patch? |
| * in case of local spark app something like 'local-1433865536131' | ||
| * in case of YARN something like 'application_1433865536131_34483' | ||
| * in case of MESOS something like 'driver-20170926223339-0001' | ||
| * in case of Kubernetes something like 'spark-application-1559610575898' |
There was a problem hiding this comment.
@srowen This is not true for cluster mode. In cluster mode application_id is set here in the Spark Context and this value is retrieved from here. But it does not default to:
private val appId = "spark-application-" + System.currentTimeMillis
as it is overridden in here:
override def applicationId(): String = backend.applicationId()
The K8s backend will set that value here:
conf.getOption("spark.app.id").map(_.toString).getOrElse(super.applicationId)
For cluster mode the spark.app.id is always set here to be:
val kubernetesAppId = s"spark-${UUID.randomUUID().toString.replaceAll("-", "")}"
An example: Spark Application Id: spark-3d4ef94a42e1428c9658f13573abfa38
|
@zhangmeng0426 pls update the PR title to include the related jira ticket that addresses this issue and also add related component eg. [SPARK-XXXXX][K8s] |
|
@zhangjiajin . This is not
|
|
Per #24791 (comment) this looks incorrect anyway. |
What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)
Please review https://spark.apache.org/contributing.html before opening a pull request.