File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
core/src/main/scala/org/apache/spark/ui
sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import java.util.{Locale, Date}
2323import scala .xml .Node
2424
2525import org .apache .spark .Logging
26- import org .apache .spark .SparkContext
26+ import org .apache .spark .SPARK_VERSION
2727
2828/** Utility functions for generating XML pages with spark content. */
2929private [spark] object UIUtils extends Logging {
@@ -189,7 +189,7 @@ private[spark] object UIUtils extends Logging {
189189 <div class =" brand" >
190190 <a href ={prependBaseUri(" /" )} class =" brand" >
191191 <img src ={prependBaseUri(" /static/spark-logo-77x50px-hd.png" )} />
192- <span class =" version" >{org.apache.spark. SPARK_VERSION }</span >
192+ <span class =" version" >{SPARK_VERSION }</span >
193193 </a >
194194 </div >
195195 <ul class =" nav" >{header}</ul >
@@ -227,7 +227,8 @@ private[spark] object UIUtils extends Logging {
227227 <a style =" text-decoration: none" href ={prependBaseUri(" /" )}>
228228 < img src= {prependBaseUri(" /static/spark-logo-77x50px-hd.png" )}
229229 style= " margin-right: 15px;" />
230- <span class =" version" >{org.apache.spark.SPARK_VERSION }</span >
230+ < span class = " version"
231+ style= " margin-right: 15px;" > {SPARK_VERSION }</span >
231232 </a >
232233 {title}
233234 </h3 >
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ import org.apache.thrift.protocol.TBinaryProtocol
3737import org .apache .thrift .transport .TSocket
3838import org .scalatest .FunSuite
3939
40- import org .apache .spark .{SparkContext , Logging }
40+ import org .apache .spark .{SparkContext , Logging , SPARK_VERSION }
4141import org .apache .spark .sql .catalyst .util .getTempFilePath
4242
4343/**
@@ -227,7 +227,7 @@ class HiveThriftServer2Suite extends FunSuite with Logging {
227227 client.getInfo(sessionHandle, GetInfoType .CLI_SERVER_NAME ).getStringValue
228228 }
229229
230- assertResult(SparkContext . SPARK_VERSION , " Spark version shouldn't be \" Unknown\" " ) {
230+ assertResult(SPARK_VERSION , " Spark version shouldn't be \" Unknown\" " ) {
231231 client.getInfo(sessionHandle, GetInfoType .CLI_DBMS_VER ).getStringValue
232232 }
233233 }
You can’t perform that action at this time.
0 commit comments