HDFS-14550. RBF: Failed to get statistics from NameNodes before 2.9.0. Contributed by He Xiaoqiao.
This commit is contained in:
parent
b52fd05d42
commit
8627f6532b
@ -353,9 +353,9 @@ private void updateJMXParameters(
|
|||||||
jsonObject.getInt("NumDecommissioningDataNodes"),
|
jsonObject.getInt("NumDecommissioningDataNodes"),
|
||||||
jsonObject.getInt("NumDecomLiveDataNodes"),
|
jsonObject.getInt("NumDecomLiveDataNodes"),
|
||||||
jsonObject.getInt("NumDecomDeadDataNodes"),
|
jsonObject.getInt("NumDecomDeadDataNodes"),
|
||||||
jsonObject.getInt("NumInMaintenanceLiveDataNodes"),
|
jsonObject.optInt("NumInMaintenanceLiveDataNodes"),
|
||||||
jsonObject.getInt("NumInMaintenanceDeadDataNodes"),
|
jsonObject.optInt("NumInMaintenanceDeadDataNodes"),
|
||||||
jsonObject.getInt("NumEnteringMaintenanceDataNodes"));
|
jsonObject.optInt("NumEnteringMaintenanceDataNodes"));
|
||||||
} else if (name.equals(
|
} else if (name.equals(
|
||||||
"Hadoop:service=NameNode,name=FSNamesystem")) {
|
"Hadoop:service=NameNode,name=FSNamesystem")) {
|
||||||
report.setNamesystemInfo(
|
report.setNamesystemInfo(
|
||||||
|
Loading…
Reference in New Issue
Block a user