You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ul...@apache.org on 2022/05/18 12:33:05 UTC
[incubator-kyuubi] branch master updated: [KYUUBI #2694] EngineEvent.toString outputs application tags
This is an automated email from the ASF dual-hosted git repository.
ulyssesyou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new 27030d392 [KYUUBI #2694] EngineEvent.toString outputs application tags
27030d392 is described below
commit 27030d392d2a96ecbd303479825293741f3c413d
Author: sychen <sy...@ctrip.com>
AuthorDate: Wed May 18 20:32:53 2022 +0800
[KYUUBI #2694] EngineEvent.toString outputs application tags
### _Why are the changes needed?_
close #2694
Now `engineRefId` is part of the application name and is output in the engine log, such as SparkBatch, or some UTs cover the app name. At this time, it is difficult to correlate the engine log.
Now `engineRefId` is also part of tags, so we can output tags when outputting logs.
### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
- [ ] Add screenshots for manual tests if appropriate
- [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request
Closes #2695 from cxzl25/KYUUBI-2694.
Closes #2694
ae995a77 [sychen] output tags
Authored-by: sychen <sy...@ctrip.com>
Signed-off-by: ulysses-you <ul...@apache.org>
---
.../scala/org/apache/kyuubi/engine/spark/events/EngineEvent.scala | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/events/EngineEvent.scala b/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/events/EngineEvent.scala
index 32f78583d..b1e0cdf4d 100644
--- a/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/events/EngineEvent.scala
+++ b/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/events/EngineEvent.scala
@@ -74,9 +74,13 @@ case class EngineEvent(
} else {
settings.getOrElse("spark.executor.instances", 2)
}
+ val tags = settings.getOrElse(
+ "spark.yarn.tags",
+ settings.getOrElse("spark.kubernetes.driver.label.kyuubi_unique_tag", ""))
s"""
| Spark application name: $applicationName
| application ID: $applicationId
+ | application tags: $tags
| application web UI: $webUrl
| master: $master
| version: $sparkVersion