Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/2342#discussion_r28990365
--- Diff: core/src/main/scala/org/apache/spark/ui/jobs/JobPage.scala ---
@@ -17,20 +17,167 @@
package org.apache.spark.ui.jobs
-import scala.collection.mutable
-import scala.xml.{NodeSeq, Node}
+import java.util.Date
+
+import scala.collection.mutable.{Buffer, ListBuffer}
+import scala.xml.{NodeSeq, Node, Unparsed}
import javax.servlet.http.HttpServletRequest
import org.apache.spark.JobExecutionStatus
import org.apache.spark.scheduler.StageInfo
import org.apache.spark.ui.{UIUtils, WebUIPage}
+import org.apache.spark.ui.jobs.UIData.ExecutorUIData
/** Page showing statistics and stage list for a given job */
private[ui] class JobPage(parent: JobsTab) extends WebUIPage("job") {
- private val listener = parent.listener
+ private val STAGES_LEGEND =
+ <div class="legend-area"><svg width="200px" height="85px">
+ <rect x="5px" y="5px" width="20px" height="15px"
+ rx="2px" ry="2px" stroke="#97B0F8" fill="#D5DDF6"></rect>
+ <text x="35px" y="17px">Completed Stage </text>
+ <rect x="5px" y="35px" width="20px" height="15px"
+ rx="2px" ry="2px" stroke="#97B0F8" fill="#FF5475"></rect>
+ <text x="35px" y="47px">Failed Stage</text>
+ <rect x="5px" y="65px" width="20px" height="15px"
+ rx="2px" ry="2px" stroke="#97B0F8" fill="#FDFFCA"></rect>
+ <text x="35px" y="77px">Active Stage</text>
+ </svg></div>.toString.filter(_ != '\n')
+
+ private val EXECUTORS_LEGEND =
+ <div class="legend-area"><svg width="200px" height="55px">
+ <rect x="5px" y="5px" width="20px" height="15px"
+ rx="2px" ry="2px" stroke="#97B0F8" fill="#D5DDF6"></rect>
+ <text x="35px" y="17px">Executor Added</text>
+ <rect x="5px" y="35px" width="20px" height="15px"
+ rx="2px" ry="2px" stroke="#97B0F8" fill="#EBCA59"></rect>
+ <text x="35px" y="47px">Executor Removed</text>
+ </svg></div>.toString.filter(_ != '\n')
+
+ private def makeStageEvent(stageInfos: Seq[StageInfo]): Seq[String] = {
+ stageInfos.map { stage =>
+ val stageId = stage.stageId
+ val attemptId = stage.attemptId
+ val name = stage.name
+ val status = {
--- End diff --
This is very minor, though
---
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]