|
@@ -6408,6 +6408,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|
|
.put("infoAddr", node.getInfoAddr())
|
|
|
.put("infoSecureAddr", node.getInfoSecureAddr())
|
|
|
.put("xferaddr", node.getXferAddr())
|
|
|
+ .put("location", node.getNetworkLocation())
|
|
|
.put("lastContact", getLastContact(node))
|
|
|
.put("usedSpace", getDfsUsed(node))
|
|
|
.put("adminState", node.getAdminState().toString())
|
|
@@ -6457,6 +6458,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|
|
.put("decommissioned", node.isDecommissioned())
|
|
|
.put("adminState", node.getAdminState().toString())
|
|
|
.put("xferaddr", node.getXferAddr())
|
|
|
+ .put("location", node.getNetworkLocation())
|
|
|
.build();
|
|
|
info.put(node.getHostName() + ":" + node.getXferPort(), innerinfo);
|
|
|
}
|
|
@@ -6478,6 +6480,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|
|
Map<String, Object> innerinfo = ImmutableMap
|
|
|
.<String, Object> builder()
|
|
|
.put("xferaddr", node.getXferAddr())
|
|
|
+ .put("location", node.getNetworkLocation())
|
|
|
.put("underReplicatedBlocks",
|
|
|
node.getLeavingServiceStatus().getUnderReplicatedBlocks())
|
|
|
.put("decommissionOnlyReplicas",
|
|
@@ -6505,6 +6508,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|
|
Map<String, Object> attrMap = ImmutableMap
|
|
|
.<String, Object> builder()
|
|
|
.put("xferaddr", node.getXferAddr())
|
|
|
+ .put("location", node.getNetworkLocation())
|
|
|
.put("underReplicatedBlocks",
|
|
|
node.getLeavingServiceStatus().getUnderReplicatedBlocks())
|
|
|
.put("maintenanceOnlyReplicas",
|