HDFS-14550. RBF: Failed to get statistics from NameNodes before 2.9.0. Contributed by He Xiaoqiao.

This commit is contained in:
Akira Ajisaka 2019-06-07 15:43:38 +09:00 committed by Brahma Reddy Battula
parent b52fd05d42
commit 8627f6532b

View File

@ -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(