Github user sarutak commented on a diff in the pull request: https://github.com/apache/spark/pull/2342#discussion_r29098432 --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/AllJobsPage.scala --- @@ -17,17 +17,172 @@ package org.apache.spark.ui.jobs -import scala.xml.{Node, NodeSeq} +import scala.collection.mutable.{HashMap, ListBuffer} +import scala.xml.{Node, NodeSeq, Unparsed} +import java.util.Date import javax.servlet.http.HttpServletRequest -import org.apache.spark.ui.{WebUIPage, UIUtils} -import org.apache.spark.ui.jobs.UIData.JobUIData +import org.apache.spark.ui.{UIUtils, WebUIPage} +import org.apache.spark.ui.jobs.UIData.{ExecutorUIData, JobUIData} +import org.apache.spark.JobExecutionStatus /** Page showing list of all ongoing and recently finished jobs */ private[ui] class AllJobsPage(parent: JobsTab) extends WebUIPage("") { - private val startTime: Option[Long] = parent.sc.map(_.startTime) - private val listener = parent.listener + private val JOBS_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">Succeeded Job</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 Job</text> + <rect x="5px" y="65px" width="20px" height="15px" + rx="2px" ry="2px" stroke="#97B0F8" fill="#FDFFCA"></rect> + <text x="35px" y="77px">Running Job</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> --- End diff -- Now stroke and fill attributes are move to the CSS file.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org