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

    https://github.com/apache/spark/pull/9487#discussion_r44106408
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala ---
    @@ -70,6 +70,21 @@ private[ui] class StagePage(parent: StagesTab) extends 
WebUIPage("stage") {
     
       private val displayPeakExecutionMemory = 
parent.conf.getBoolean("spark.sql.unsafe.enabled", true)
     
    +  private def getLocalitySummaryString(stageData: StageUIData): String = {
    +    val localities = stageData.taskData.values.map(_.taskInfo.taskLocality)
    +    val localityCounts = localities.groupBy(identity).mapValues(_.size)
    +    val localityNamesAndCounts = localityCounts.toSeq.map { case 
(locality, count) =>
    +      val localityName = locality match {
    +        case TaskLocality.PROCESS_LOCAL => "Process local"
    +        case TaskLocality.NODE_LOCAL => "Node local"
    +        case TaskLocality.RACK_LOCAL => "Rack local"
    +        case TaskLocality.ANY => "Any"
    +      }
    +      (localityName, count)
    --- End diff --
    
    Good point, let me do it.


---
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

Reply via email to