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
b683769fc9
commit
51dcbd1d61
|
@ -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