This is an automated email from the ASF dual-hosted git repository.
bowenliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new 76daa0168 [KYUUBI #5019] Shows details of compilation info in
SparkUI's engine tab
76daa0168 is described below
commit 76daa01681f9ecc04b8e8fcdd3c31ea3dfa56d77
Author: liangbowen <[email protected]>
AuthorDate: Fri Jul 7 18:05:05 2023 +0800
[KYUUBI #5019] Shows details of compilation info in SparkUI's engine tab
### _Why are the changes needed?_
Adding compilation details info in SparkUI's Engine tab
- shows details of kyuubi version, including revision, revision time and
branch
- show compilation version of Spark, Scala, Hadoop and Hive

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including
negative and positive cases if possible
- [x] Add screenshots for manual tests if appropriate
- [ ] [Run
test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests)
locally before make a pull request
Closes #5019 from bowenliang123/enginetab-info.
Closes #5019
3ea108bd6 [liangbowen] shows Compilation Info in SparkUI's Engine tab
Authored-by: liangbowen <[email protected]>
Signed-off-by: liangbowen <[email protected]>
---
.../src/main/scala/org/apache/spark/ui/EnginePage.scala | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git
a/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/ui/EnginePage.scala
b/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/ui/EnginePage.scala
index 83626dac5..7188ac62f 100644
---
a/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/ui/EnginePage.scala
+++
b/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/ui/EnginePage.scala
@@ -29,7 +29,7 @@ import org.apache.commons.text.StringEscapeUtils
import org.apache.spark.ui.TableSourceUtil._
import org.apache.spark.ui.UIUtils._
-import org.apache.kyuubi.{KYUUBI_VERSION, Utils}
+import org.apache.kyuubi._
import org.apache.kyuubi.engine.spark.events.{SessionEvent,
SparkOperationEvent}
case class EnginePage(parent: EngineTab) extends WebUIPage("") {
@@ -58,6 +58,15 @@ case class EnginePage(parent: EngineTab) extends
WebUIPage("") {
<strong>Kyuubi Version: </strong>
{KYUUBI_VERSION}
</li>
+ <li>
+ <strong>Compilation Revision:</strong>
+ {REVISION.substring(0, 7)} ({REVISION_TIME}), branch {BRANCH}
+ </li>
+ <li>
+ <strong>Compilation with:</strong>
+ Spark {SPARK_COMPILE_VERSION}, Scala {SCALA_COMPILE_VERSION},
+ Hadoop {HADOOP_COMPILE_VERSION}, Hive {HIVE_COMPILE_VERSION}
+ </li>
<li>
<strong>Started at: </strong>
{new Date(parent.startTime)}