Skip to content
Snippets Groups Projects
Commit 8da6e8b1 authored by guoxiaolong's avatar guoxiaolong Committed by Sean Owen
Browse files

[SPARK-20720][WEB-UI] Executor Summary' should show the exact number, 'Removed...

[SPARK-20720][WEB-UI] Executor Summary' should show the exact number, 'Removed Executors' should display the specific number, in the Application Page

## What changes were proposed in this pull request?

When the number of spark worker executors is large, if the specific number is displayed, will better help us to analyze and observe by spark ui.

Although this is a small improvement, but it is indeed very valuable.

After fix:
![executor1](https://cloud.githubusercontent.com/assets/26266482/25986597/2d8e4386-3723-11e7-9c24-e5bff17c26e2.png)

## How was this patch tested?

manual tests

Please review http://spark.apache.org/contributing.html before opening a pull request.

Author: guoxiaolong <guo.xiaolong1@zte.com.cn>
Author: 郭小龙 10207633 <guo.xiaolong1@zte.com.cn>
Author: guoxiaolongzte <guo.xiaolong1@zte.com.cn>

Closes #17961 from guoxiaolongzte/SPARK-20720.
parent 99d57999
No related branches found
No related tags found
No related merge requests found
......@@ -100,11 +100,11 @@ private[ui] class ApplicationPage(parent: MasterWebUI) extends WebUIPage("app")
<div class="row-fluid"> <!-- Executors -->
<div class="span12">
<h4> Executor Summary </h4>
<h4> Executor Summary ({allExecutors.length}) </h4>
{executorsTable}
{
if (removedExecutors.nonEmpty) {
<h4> Removed Executors </h4> ++
<h4> Removed Executors ({removedExecutors.length}) </h4> ++
removedExecutorsTable
}
}
......
......@@ -128,14 +128,14 @@ private[ui] class MasterPage(parent: MasterWebUI) extends WebUIPage("") {
<div class="row-fluid">
<div class="span12">
<h4> Workers </h4>
<h4> Workers ({workers.length}) </h4>
{workerTable}
</div>
</div>
<div class="row-fluid">
<div class="span12">
<h4 id="running-app"> Running Applications </h4>
<h4 id="running-app"> Running Applications ({activeApps.length}) </h4>
{activeAppsTable}
</div>
</div>
......@@ -144,7 +144,7 @@ private[ui] class MasterPage(parent: MasterWebUI) extends WebUIPage("") {
{if (hasDrivers) {
<div class="row-fluid">
<div class="span12">
<h4> Running Drivers </h4>
<h4> Running Drivers ({activeDrivers.length}) </h4>
{activeDriversTable}
</div>
</div>
......@@ -154,7 +154,7 @@ private[ui] class MasterPage(parent: MasterWebUI) extends WebUIPage("") {
<div class="row-fluid">
<div class="span12">
<h4 id="completed-app"> Completed Applications </h4>
<h4 id="completed-app"> Completed Applications ({completedApps.length}) </h4>
{completedAppsTable}
</div>
</div>
......@@ -164,7 +164,7 @@ private[ui] class MasterPage(parent: MasterWebUI) extends WebUIPage("") {
if (hasDrivers) {
<div class="row-fluid">
<div class="span12">
<h4> Completed Drivers </h4>
<h4> Completed Drivers ({completedDrivers.length}) </h4>
{completedDriversTable}
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment