Skip to content

Commit

Permalink
Aggregated Metrics table sort based on executor ID
Browse files Browse the repository at this point in the history
  • Loading branch information
shahidki31 committed Nov 14, 2018
1 parent 075dd62 commit 55aebe6
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions core/src/main/scala/org/apache/spark/ui/jobs/ExecutorTable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ private[ui] class ExecutorTable(stage: StageData, store: AppStatusStore) {
Blacklisted
</span>
</th>
<th>Logs</th>
</thead>
<tbody>
{createExecutorTable(stage)}
Expand All @@ -92,16 +93,7 @@ private[ui] class ExecutorTable(stage: StageData, store: AppStatusStore) {
executorSummary.toSeq.sortBy(_._1).map { case (k, v) =>
val executor = store.asOption(store.executorSummary(k))
<tr>
<td>
<div style="float: left">{k}</div>
<div style="float: right">
{
executor.map(_.executorLogs).getOrElse(Map.empty).map {
case (logName, logUrl) => <div><a href={logUrl}>{logName}</a></div>
}
}
</div>
</td>
<td>k</td>
<td>{executor.map { e => e.hostPort }.getOrElse("CANNOT FIND ADDRESS")}</td>
<td sorttable_customkey={v.taskTime.toString}>{UIUtils.formatDuration(v.taskTime)}</td>
<td>{v.failedTasks + v.succeededTasks + v.killedTasks}</td>
Expand Down Expand Up @@ -145,6 +137,11 @@ private[ui] class ExecutorTable(stage: StageData, store: AppStatusStore) {
<td>false</td>
}
}
<td> {executor.map(_.executorLogs).getOrElse(Map.empty).map {
case (logName, logUrl) => <div><a href={logUrl}>{logName}</a></div>
}}
</td>

</tr>
}
}
Expand Down

0 comments on commit 55aebe6

Please sign in to comment.