[ https://issues.apache.org/jira/browse/HDFS-13207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16380976#comment-16380976 ]
Bharat Viswanadham commented on HDFS-13207: ------------------------------------------- Existing TestDFSAdmin test cases, covers this. Tested it on a Federated cluster. The output is as below: {code:java} hdfs@373dc353753f:/$ /hadoop/bin/hdfs dfsadmin -report 2018-02-28 20:15:14,153 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Configured Capacity: 1995884724224 (1.82 TB) Present Capacity: 1117203682022 (1.02 TB) DFS Remaining: 1117203578880 (1.02 TB) DFS Used: 103142 (100.72 KB) DFS Used%: 0.00% Replicated Blocks: Under replicated blocks: 0 Blocks with corrupt replicas: 0 Missing blocks: 0 Missing blocks (with replication factor 1): 0 Pending deletion blocks: 0 Erasure Coded Block Groups: Low redundancy block groups: 0 Block groups with corrupt internal blocks: 0 Missing block groups: 0 Pending deletion blocks: 0 ------------------------------------------------- Live datanodes (4): Name: xxx Hostname: 373dc353753f Decommission Status : Normal Configured Capacity: 498971181056 (464.70 GB) DFS Used: 78566 (76.72 KB) Block Pool Used: 4096 (4 KB) Non DFS Used: 219416452378 (204.35 GB) DFS Remaining: 279292506112 (260.11 GB) DFS Used%: 0.00% DFS Remaining%: 55.97% Configured Cache Capacity: 0 (0 B) Cache Used: 0 (0 B) Cache Remaining: 0 (0 B) Cache Used%: 100.00% Cache Remaining%: 0.00% Xceivers: 1 Last contact: Wed Feb 28 20:15:13 UTC 2018 Last Block Report: Wed Feb 28 20:14:43 UTC 2018 Name: xxx Hostname: 57a3a51fff80 Decommission Status : Normal Configured Capacity: 498971181056 (464.70 GB) DFS Used: 8192 (8 KB) Block Pool Used: 4096 (4 KB) Non DFS Used: 219416522752 (204.35 GB) DFS Remaining: 279292506112 (260.11 GB) DFS Used%: 0.00% DFS Remaining%: 55.97% Configured Cache Capacity: 0 (0 B) Cache Used: 0 (0 B) Cache Remaining: 0 (0 B) Cache Used%: 100.00% Cache Remaining%: 0.00% Xceivers: 1 Last contact: Wed Feb 28 20:15:12 UTC 2018 Last Block Report: Wed Feb 28 20:14:42 UTC 2018 Name: xxx Hostname: 0865db3359a9 Decommission Status : Normal Configured Capacity: 498971181056 (464.70 GB) DFS Used: 8192 (8 KB) Block Pool Used: 4096 (4 KB) Non DFS Used: 219382968320 (204.32 GB) DFS Remaining: 279326060544 (260.14 GB) DFS Used%: 0.00% DFS Remaining%: 55.98% Configured Cache Capacity: 0 (0 B) Cache Used: 0 (0 B) Cache Remaining: 0 (0 B) Cache Used%: 100.00% Cache Remaining%: 0.00% Xceivers: 1 Last contact: Wed Feb 28 20:15:12 UTC 2018 Last Block Report: Wed Feb 28 20:14:42 UTC 2018 Name: xxx Hostname: e7d4bc7c9353 Decommission Status : Normal Configured Capacity: 498971181056 (464.70 GB) DFS Used: 8192 (8 KB) Block Pool Used: 4096 (4 KB) Non DFS Used: 219416522752 (204.35 GB) DFS Remaining: 279292506112 (260.11 GB) DFS Used%: 0.00% DFS Remaining%: 55.97% Configured Cache Capacity: 0 (0 B) Cache Used: 0 (0 B) Cache Remaining: 0 (0 B) Cache Used%: 100.00% Cache Remaining%: 0.00% Xceivers: 1 Last contact: Wed Feb 28 20:15:12 UTC 2018 Last Block Report: Wed Feb 28 20:14:42 UTC 2018 {code} > Add blockpool used for DFSAdmin Report command > ----------------------------------------------- > > Key: HDFS-13207 > URL: https://issues.apache.org/jira/browse/HDFS-13207 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Bharat Viswanadham > Assignee: Bharat Viswanadham > Priority: Major > Attachments: HDFS-13207.00.patch > > > Add block pool used for dfsadmin -report command. > This will be helpful on a federated cluster to know DFS used by a particular > namespace. > > On a non-federated cluster, blockPoolUsed and DFSUsed will be shown as same. > > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org