From 0a293de00d5f123c7c8248459aa8ae88a45f39b1 Mon Sep 17 00:00:00 2001 From: Yiqun Lin Date: Fri, 27 Apr 2018 10:38:15 +0800 Subject: [PATCH] HDFS-13499. RBF: Show disabled name services in the UI. Contributed by Inigo Goiri. --- .../src/main/webapps/router/federationhealth.html | 1 + .../src/main/webapps/router/federationhealth.js | 3 +++ .../hadoop-hdfs-rbf/src/main/webapps/static/rbf.css | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.html b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.html index f1cf482a3fa..37fcb928121 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.html +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.html @@ -132,6 +132,7 @@
  • Active
  • Standby
  • Safe mode
  • +
  • Disabled
  • Unavailable
  • diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.js b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.js index a0b0128dcbb..6779b6155fa 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.js +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.js @@ -130,6 +130,9 @@ } else if (nodes[i].state === "UNAVAILABLE") { n.title = capitalise(n.state); n.iconState = "unavailable"; + } else if (nodes[i].state === "DISABLED") { + n.title = capitalise(n.state); + n.iconState = "disabled"; } if (n.namenodeId === "null") { n.namenodeId = ""; diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/static/rbf.css b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/static/rbf.css index f9230850634..43112af044b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/static/rbf.css +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/static/rbf.css @@ -53,6 +53,11 @@ content: "\e090"; } +.federationhealth-namenode-disabled:before { + color: #eea236; + content: "\e136"; +} + .federationhealth-namenode-legend { list-style-type: none; text-align: right;