You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ay...@apache.org on 2023/04/23 19:55:05 UTC
[hadoop] 02/02: HDFS-16988. Improve NameServices info at JournalNode web UI (#5584). Contributed by Zhaohui Wang.
This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
commit 1ea5fbd1928c2205362e41a99bc31169c62e3259
Author: wangzhaohui <32...@users.noreply.github.com>
AuthorDate: Mon Apr 24 03:43:02 2023 +0800
HDFS-16988. Improve NameServices info at JournalNode web UI (#5584). Contributed by Zhaohui Wang.
Signed-off-by: Ayush Saxena <ay...@apache.org>
---
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/journal/jn.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/journal/jn.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/journal/jn.js
index 7be48f1e04d..260615b0e21 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/journal/jn.js
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/journal/jn.js
@@ -61,7 +61,9 @@
function workaround(journals) {
for (var i in journals){
- journals[i]['NameService']= journals[i]['modelerType'].split("-")[1];
+ var str= journals[i]['modelerType'];
+ var index= str.indexOf("-");
+ journals[i]['NameService']= str.substr(index + 1);
}
return journals;
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org