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 2021/12/06 12:07:24 UTC

[incubator-kyuubi] branch master updated: [KYUUBI #1508] Add Kyuubi version in UI

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 dad48c9  [KYUUBI #1508] Add Kyuubi version in UI
dad48c9 is described below

commit dad48c9d74a6a394e955a33ed5c3e8abe5390967
Author: ulysses-you <ul...@gmail.com>
AuthorDate: Mon Dec 6 20:07:08 2021 +0800

    [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
    
    d2567664 [ulysses-you] version
    
    Authored-by: ulysses-you <ul...@gmail.com>
    Signed-off-by: ulysses-you <ul...@apache.org>
---
 .../src/main/scala/org/apache/spark/ui/EnginePage.scala             | 6 +++++-
 1 file changed, 5 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 2f40323..8f5b79a 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.Utils
+import org.apache.kyuubi.{KYUUBI_VERSION, Utils}
 import org.apache.kyuubi.engine.spark.events.{SessionEvent, SparkStatementEvent}
 
 case class EnginePage(parent: EngineTab) extends WebUIPage("") {
@@ -55,6 +55,10 @@ case class EnginePage(parent: EngineTab) extends WebUIPage("") {
     val timeSinceStart = System.currentTimeMillis() - parent.engine.getStartTime
     <ul class ="list-unstyled">
       <li>
+        <strong>Kyuubi Version: </strong>
+        {KYUUBI_VERSION}
+      </li>
+      <li>
         <strong>Started at: </strong>
         {new Date(parent.engine.getStartTime)}
       </li>