From e5f5774a12e2e1b67c6089269900fd4f3cbe8ca1 Mon Sep 17 00:00:00 2001 From: pgandhi Date: Mon, 3 Dec 2018 13:41:59 +0530 Subject: [PATCH] [SPARK-26253] : Task Summary Metrics Table on Stage Page shows empty table when no data is present Added a custom message to show on the task summary metrics table as well as executor summary table when no data is present. --- .../resources/org/apache/spark/ui/static/stagepage.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/src/main/resources/org/apache/spark/ui/static/stagepage.js b/core/src/main/resources/org/apache/spark/ui/static/stagepage.js index 4c83ec7e95ab1..564467487e84e 100644 --- a/core/src/main/resources/org/apache/spark/ui/static/stagepage.js +++ b/core/src/main/resources/org/apache/spark/ui/static/stagepage.js @@ -221,7 +221,10 @@ function createDataTableForTaskSummaryMetricsTable(taskSummaryMetricsTable) { "searching": false, "order": [[0, "asc"]], "bSort": false, - "bAutoWidth": false + "bAutoWidth": false, + "oLanguage": { + "sEmptyTable": "No tasks have reported metrics yet" + } }; taskSummaryMetricsDataTable = $(taskMetricsTable).DataTable(taskConf); } @@ -426,7 +429,10 @@ $(document).ready(function () { } ], "order": [[0, "asc"]], - "bAutoWidth": false + "bAutoWidth": false, + "oLanguage": { + "sEmptyTable": "No data to show yet" + } } var executorSummaryTableSelector = $("#summary-executor-table").DataTable(executorSummaryConf);