-
Notifications
You must be signed in to change notification settings - Fork 28.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-8100][UI]Make able to refer lost executor info in Spark UI #6644
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,8 @@ private[ui] case class ExecutorSummaryInfo( | |
totalShuffleRead: Long, | ||
totalShuffleWrite: Long, | ||
maxMemory: Long, | ||
executorLogs: Map[String, String]) | ||
executorLogs: Map[String, String], | ||
isRemoved: Boolean) | ||
|
||
|
||
private[ui] class ExecutorsPage( | ||
|
@@ -53,9 +54,11 @@ private[ui] class ExecutorsPage( | |
|
||
def render(request: HttpServletRequest): Seq[Node] = { | ||
val storageStatusList = listener.storageStatusList | ||
val maxMem = storageStatusList.map(_.maxMem).sum | ||
val memUsed = storageStatusList.map(_.memUsed).sum | ||
val diskUsed = storageStatusList.map(_.diskUsed).sum | ||
val activeStorageStatusList = storageStatusList.filter(!_.isRemoved) | ||
val maxMem = activeStorageStatusList.map(_.maxMem).sum | ||
val memUsed = activeStorageStatusList.map(_.memUsed).sum | ||
val diskUsed = activeStorageStatusList.map(_.diskUsed).sum | ||
val activeExecSize = activeStorageStatusList.size | ||
val execInfo = for (statusId <- 0 until storageStatusList.size) yield | ||
ExecutorsPage.getExecInfo(listener, statusId) | ||
val execInfoSorted = execInfo.sortBy(_.id) | ||
|
@@ -85,7 +88,7 @@ private[ui] class ExecutorsPage( | |
</span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why remove this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @andrewor14 I not remove that actually, Because for the lost executor, it can't do dump, |
||
</th> | ||
{if (logsExist) <th class="sorttable_nosort">Logs</th> else Seq.empty} | ||
{if (threadDumpEnabled) <th class="sorttable_nosort">Thread Dump</th> else Seq.empty} | ||
<th class="sorttable_nosort">Status</th> | ||
</thead> | ||
<tbody> | ||
{execInfoSorted.map(execRow(_, logsExist))} | ||
|
@@ -109,7 +112,8 @@ private[ui] class ExecutorsPage( | |
</div> | ||
</div>; | ||
|
||
UIUtils.headerSparkPage("Executors (" + execInfo.size + ")", content, parent) | ||
UIUtils.headerSparkPage("Executors (Active: " + activeExecSize + | ||
", Total Allocated: " + execInfo.size + ")", content, parent) | ||
} | ||
|
||
/** Render an HTML row representing an executor */ | ||
|
@@ -160,13 +164,15 @@ private[ui] class ExecutorsPage( | |
} | ||
} | ||
{ | ||
if (threadDumpEnabled) { | ||
if (info.isRemoved) { | ||
<td>Removed</td> | ||
} else if (threadDumpEnabled) { | ||
val encodedId = URLEncoder.encode(info.id, "UTF-8") | ||
<td> | ||
<a href={s"threadDump/?executorId=${encodedId}"}>Thread Dump</a> | ||
</td> | ||
} else { | ||
Seq.empty | ||
<td></td> | ||
} | ||
} | ||
</tr> | ||
|
@@ -193,6 +199,7 @@ private[spark] object ExecutorsPage { | |
val totalShuffleRead = listener.executorToShuffleRead.getOrElse(execId, 0L) | ||
val totalShuffleWrite = listener.executorToShuffleWrite.getOrElse(execId, 0L) | ||
val executorLogs = listener.executorToLogUrls.getOrElse(execId, Map.empty) | ||
val isRemoved = status.isRemoved | ||
|
||
new ExecutorSummary( | ||
execId, | ||
|
@@ -209,7 +216,8 @@ private[spark] object ExecutorsPage { | |
totalShuffleRead, | ||
totalShuffleWrite, | ||
maxMem, | ||
executorLogs | ||
executorLogs, | ||
isRemoved | ||
) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think about tracking the time it was removed as well?