From 773591ee42089a3dbf7f71324acbcfc68758dbd2 Mon Sep 17 00:00:00 2001 From: Szilard Nemeth Date: Fri, 12 Jul 2019 17:40:14 +0200 Subject: [PATCH] YARN-9626. UI2 - Fair scheduler queue apps page issues. Contributed by Zoltan Siegl (cherry picked from commit 557056e18ea3d5b3fe3046f0ea4b4c7345ea21c5) --- .../yarn-queue/fair-queue-conf-table.hbs | 2 +- .../main/webapp/app/templates/yarn-queue.hbs | 44 ++++++++++--------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/components/yarn-queue/fair-queue-conf-table.hbs b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/components/yarn-queue/fair-queue-conf-table.hbs index b2448cf19a8..fba7a55ebad 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/components/yarn-queue/fair-queue-conf-table.hbs +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/components/yarn-queue/fair-queue-conf-table.hbs @@ -38,7 +38,7 @@ Pending, Allocated, Reserved Containers - {{queue.pendingContainers}} , {{queue.allocatedContainers}} , {{queue.reservedContainers}} + {{#if queue.pendingContainers}}{{queue.pendingContainers}}{{else}}0{{/if}}, {{#if queue.allocatedContainers}}{{queue.allocatedContainers}}{{else}}0{{/if}}, {{#if queue.reservedContainers}}{{queue.reservedContainers}}{{else}}0{{/if}} Scheduling Policy diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-queue.hbs b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-queue.hbs index 756ef691312..8024ffa0c73 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-queue.hbs +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-queue.hbs @@ -29,32 +29,34 @@ {{em-table-simple-status-cell content=model.selectedQueue.state}} {{/if}} -
- - configured capacity - {{model.selectedQueue.capacity}}% - - - configured max capacity - {{model.selectedQueue.maxCapacity}}% - - {{#if model.selectedQueue.isLeafQueue}} - - user limit - {{model.selectedQueue.userLimit}}% - - - user limit factor - {{model.selectedQueue.userLimitFactor}} - - {{/if}} -
+ {{#if (eq model.queues.firstObject.type "capacity")}} +
+ + configured capacity + {{model.selectedQueue.capacity}}% + + + configured max capacity + {{model.selectedQueue.maxCapacity}}% + + {{#if model.selectedQueue.isLeafQueue}} + + user limit + {{model.selectedQueue.userLimit}}% + + + user limit factor + {{model.selectedQueue.userLimitFactor}} + + {{/if}} +
+ {{/if}}
{{#each model.selectedQueue.capacitiesBarChartData as |item|}} {{lower item.label}} - {{item.value}}% + {{item.value}}{{#if (eq model.queues.firstObject.type "fair")}} MB{{else}}%{{/if}} {{/each}}