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("NumDecomLiveDataNodes"),
|
||||
jsonObject.getInt("NumDecomDeadDataNodes"),
|
||||
jsonObject.getInt("NumInMaintenanceLiveDataNodes"),
|
||||
jsonObject.getInt("NumInMaintenanceDeadDataNodes"),
|
||||
jsonObject.getInt("NumEnteringMaintenanceDataNodes"));
|
||||
jsonObject.optInt("NumInMaintenanceLiveDataNodes"),
|
||||
jsonObject.optInt("NumInMaintenanceDeadDataNodes"),
|
||||
jsonObject.optInt("NumEnteringMaintenanceDataNodes"));
|
||||
} else if (name.equals(
|
||||
"Hadoop:service=NameNode,name=FSNamesystem")) {
|
||||
report.setNamesystemInfo(
|
||||
|
Loading…
Reference in New Issue
Block a user