Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/7399#discussion_r34856722
--- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala ---
@@ -231,52 +241,25 @@ private[ui] class StagePage(parent: StagesTab)
extends WebUIPage("stage") {
accumulableRow,
accumulables.values.toSeq)
- val taskHeadersAndCssClasses: Seq[(String, String)] =
- Seq(
- ("Index", ""), ("ID", ""), ("Attempt", ""), ("Status", ""),
("Locality Level", ""),
- ("Executor ID / Host", ""), ("Launch Time", ""), ("Duration",
""),
- ("Scheduler Delay", TaskDetailsClassNames.SCHEDULER_DELAY),
- ("Task Deserialization Time",
TaskDetailsClassNames.TASK_DESERIALIZATION_TIME),
- ("GC Time", ""),
- ("Result Serialization Time",
TaskDetailsClassNames.RESULT_SERIALIZATION_TIME),
- ("Getting Result Time",
TaskDetailsClassNames.GETTING_RESULT_TIME)) ++
- {if (hasAccumulators) Seq(("Accumulators", "")) else Nil} ++
- {if (stageData.hasInput) Seq(("Input Size / Records", "")) else
Nil} ++
- {if (stageData.hasOutput) Seq(("Output Size / Records", "")) else
Nil} ++
- {if (stageData.hasShuffleRead) {
- Seq(("Shuffle Read Blocked Time",
TaskDetailsClassNames.SHUFFLE_READ_BLOCKED_TIME),
- ("Shuffle Read Size / Records", ""),
- ("Shuffle Remote Reads",
TaskDetailsClassNames.SHUFFLE_READ_REMOTE_SIZE))
- } else {
- Nil
- }} ++
- {if (stageData.hasShuffleWrite) {
- Seq(("Write Time", ""), ("Shuffle Write Size / Records", ""))
- } else {
- Nil
- }} ++
- {if (stageData.hasBytesSpilled) {
- Seq(("Shuffle Spill (Memory)", ""), ("Shuffle Spill (Disk)", ""))
- } else {
- Nil
- }} ++
- Seq(("Errors", ""))
-
- val unzipped = taskHeadersAndCssClasses.unzip
-
val currentTime = System.currentTimeMillis()
- val taskTable = UIUtils.listingTable(
- unzipped._1,
- taskRow(
- hasAccumulators,
- stageData.hasInput,
- stageData.hasOutput,
- stageData.hasShuffleRead,
- stageData.hasShuffleWrite,
- stageData.hasBytesSpilled,
- currentTime),
+ val taskTable = new TaskPagedTable(
+ UIUtils.prependBaseUri(parent.basePath) +
+ s"/stages/stage?id=${stageId}&attempt=${stageAttemptId}",
tasks,
- headerClasses = unzipped._2)
+ hasAccumulators,
+ stageData.hasInput,
+ stageData.hasOutput,
+ stageData.hasShuffleRead,
+ stageData.hasShuffleWrite,
+ stageData.hasBytesSpilled,
+ currentTime,
+ page = taskPage,
+ pageSize = 100, // Show 100 tasks at most in the table
--- End diff --
Can we make this something higher? Maybe 200?
---
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]