|
@@ -6485,6 +6485,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())
|
|
@@ -6534,6 +6535,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);
|
|
|
}
|
|
@@ -6555,6 +6557,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",
|
|
@@ -6582,6 +6585,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",
|