HDFS-16988. Improve NameServices info at JournalNode web UI (#5584). Contributed by Zhaohui Wang.

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
wangzhaohui 2023-04-24 03:43:02 +08:00 committed by Ayush Saxena
parent 7a32e7cc38
commit 1ea5fbd192
No known key found for this signature in database
GPG Key ID: D09AE71061AB564D
1 changed files with 3 additions and 1 deletions

View File

@ -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;