From 04c604cf1d4e2c52b01a224e9d4a9888a3d8c740 Mon Sep 17 00:00:00 2001 From: Wangda Tan Date: Thu, 2 Nov 2017 09:50:00 -0700 Subject: [PATCH] YARN-7364. Queue dash board in new YARN UI has incorrect values. (Sunil G via wangda) Change-Id: Ia5336f407147d2985a61b5f9f1e69b5b35f398a4 (cherry picked from commit 752f000e0f521ca7be173d6ca338da4585284fd0) --- .../src/main/webapp/app/routes/cluster-overview.js | 5 ++++- .../src/main/webapp/app/utils/href-address-utils.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/routes/cluster-overview.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/routes/cluster-overview.js index 3c6abd4cfd..d03ea0daa2 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/routes/cluster-overview.js +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/routes/cluster-overview.js @@ -28,7 +28,10 @@ export default AbstractRoute.extend({ { state: "RUNNING" }), - queues: this.store.query('yarn-queue.yarn-queue', {}), + queues: this.store.query("yarn-queue.yarn-queue", {}).then((model) => { + let type = model.get('firstObject').get('type'); + return this.store.query("yarn-queue." + type + "-queue", {}); + }), }); }, diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/utils/href-address-utils.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/utils/href-address-utils.js index e36de4be49..896d448960 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/utils/href-address-utils.js +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/utils/href-address-utils.js @@ -22,6 +22,6 @@ export default { }, getQueueLink: function(queueName) { - return '#/yarn-queue/' + queueName; + return '#/yarn-queue/' + queueName + '/info'; } };