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:
parent
7a32e7cc38
commit
1ea5fbd192
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue