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 GitHub
parent b683769fc9
commit 51dcbd1d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;