Skip to content

Commit dad48c9

Browse files
committed
[KYUUBI #1508] Add Kyuubi version in UI
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/contributions.html 2. If the PR is related to an issue in https://github.com/apache/incubator-kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'. 3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'. --> ### _Why are the changes needed?_ <!-- Please clarify why the changes are needed. For instance, 1. If you add a feature, you can talk about the use case of it. 2. If you fix a bug, you can clarify why it is a bug. --> Help to get the Kyuubi version. ### _How was this patch tested?_ ![image](https://user-images.githubusercontent.com/12025282/144817101-de9526f7-6467-4355-833d-68a2f31443b9.png) Closes #1508 from ulysses-you/version. Closes #1508 d256766 [ulysses-you] version Authored-by: ulysses-you <ulyssesyou18@gmail.com> Signed-off-by: ulysses-you <ulyssesyou@apache.org>
1 parent 920c8e5 commit dad48c9

File tree

1 file changed

+5
-1
lines changed
  • externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/ui

1 file changed

+5
-1
lines changed

externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/ui/EnginePage.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import org.apache.commons.text.StringEscapeUtils
2929
import org.apache.spark.ui.TableSourceUtil._
3030
import org.apache.spark.ui.UIUtils._
3131

32-
import org.apache.kyuubi.Utils
32+
import org.apache.kyuubi.{KYUUBI_VERSION, Utils}
3333
import org.apache.kyuubi.engine.spark.events.{SessionEvent, SparkStatementEvent}
3434

3535
case class EnginePage(parent: EngineTab) extends WebUIPage("") {
@@ -54,6 +54,10 @@ case class EnginePage(parent: EngineTab) extends WebUIPage("") {
5454
private def generateBasicStats(): Seq[Node] = {
5555
val timeSinceStart = System.currentTimeMillis() - parent.engine.getStartTime
5656
<ul class ="list-unstyled">
57+
<li>
58+
<strong>Kyuubi Version: </strong>
59+
{KYUUBI_VERSION}
60+
</li>
5761
<li>
5862
<strong>Started at: </strong>
5963
{new Date(parent.engine.getStartTime)}

0 commit comments

Comments
 (0)