From a9a63ae4a8367e66d5ec86b0097326b8491e4b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Elek?= Date: Wed, 17 Oct 2018 12:44:53 +0200 Subject: [PATCH] HDDS-527. Show SCM chill mode status in SCM UI. Contributed by Yiqun Lin. --- .../src/main/resources/webapps/scm/scm-overview.html | 2 +- hadoop-hdds/server-scm/src/main/resources/webapps/scm/scm.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hadoop-hdds/server-scm/src/main/resources/webapps/scm/scm-overview.html b/hadoop-hdds/server-scm/src/main/resources/webapps/scm/scm-overview.html index fca23baa04..de4894ab12 100644 --- a/hadoop-hdds/server-scm/src/main/resources/webapps/scm/scm-overview.html +++ b/hadoop-hdds/server-scm/src/main/resources/webapps/scm/scm-overview.html @@ -50,7 +50,7 @@

Status

Node Manager: Chill mode status - {{$ctrl.nodemanagermetrics.ChillModeStatus}} + {{$ctrl.scmmetrics.InChillMode}} Node Manager: Manual chill mode diff --git a/hadoop-hdds/server-scm/src/main/resources/webapps/scm/scm.js b/hadoop-hdds/server-scm/src/main/resources/webapps/scm/scm.js index bcfa8b7b7b..7c6dc9132c 100644 --- a/hadoop-hdds/server-scm/src/main/resources/webapps/scm/scm.js +++ b/hadoop-hdds/server-scm/src/main/resources/webapps/scm/scm.js @@ -34,6 +34,10 @@ .then(function (result) { ctrl.nodemanagermetrics = result.data.beans[0]; }); + $http.get("jmx?qry=Hadoop:service=StorageContainerManager,name=StorageContainerManagerInfo,component=ServerRuntime") + .then(function (result) { + ctrl.scmmetrics = result.data.beans[0]; + }); var statusSortOrder = { "HEALTHY": "a",