Github user rxin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2852#discussion_r19300540
  
    --- Diff: 
core/src/main/scala/org/apache/spark/deploy/history/HistoryPage.scala ---
    @@ -21,12 +21,28 @@ import javax.servlet.http.HttpServletRequest
     
     import scala.xml.Node
     
    -import org.apache.spark.ui.{WebUIPage, UIUtils}
    +import org.apache.spark.ui.{UITableBuilder, UITable, WebUIPage, UIUtils}
     
     private[spark] class HistoryPage(parent: HistoryServer) extends 
WebUIPage("") {
     
       private val pageSize = 20
     
    +  val appTable: UITable[ApplicationHistoryInfo] = {
    +    val builder = new UITableBuilder[ApplicationHistoryInfo]()
    +    import builder._
    +    customCol("App ID") { info =>
    +      val uiAddress = HistoryServer.UI_PATH_PREFIX + s"/${info.id}"
    +      <a href={uiAddress}>{info.id}</a>
    +    }
    +    col("App Name") { _.name }
    +    epochDateCol("Started") { _.startTime }
    +    epochDateCol("Completed") { _.endTime }
    +    durationCol("Duration") { info => info.endTime - info.startTime }
    +    col("Spark User") { _.sparkUser }
    +    epochDateCol("Last Updated") { _.lastUpdated }
    +    build
    --- End diff --
    
    as commented later, make sure you add parentheses to build()


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to