[ 
https://issues.apache.org/jira/browse/HADOOP-1627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Raghu Angadi updated HADOOP-1627:
---------------------------------

    Attachment: HADOOP-1627.patch

Patch attached.  Example output from 'dfsadmin -report' with the patch:

{noformat}
$bin/hadoop dfsadmin -report
Total raw bytes: 1947396882432 (1.77 TB)
Remaining raw bytes: 1686695993075 (1.53 TB)
Used raw bytes: 8676499456 (8.08 GB)
% used: 0.45%

-------------------------------------------------
Datanodes available: 2 (3 total, 1 dead)

Name: 127.0.0.1:50012
Decommission Status : Normal
Total raw bytes: 973698441216 (906.83 GB)
Remaining raw bytes: 843347655341(785.43 GB)
Used raw bytes: 4338249728 (4.04 GB)
% used: 0.45%
Last contact: Thu Jul 10 20:59:24 UTC 2008


Name: 127.0.0.1:50010
Decommission Status : Normal
Total raw bytes: 973698441216 (906.83 GB)
Remaining raw bytes: 843348337734(785.43 GB)
Used raw bytes: 4338249728 (4.04 GB)
% used: 0.45%
Last contact: Thu Jul 10 20:59:22 UTC 2008


Name: 127.0.0.1:50013
Decommission Status : Normal
Total raw bytes: 0 (0 KB)
Remaining raw bytes: 0(0 KB)
Used raw bytes: 0 (0 KB)   
% used: 0%
Last contact: Thu Jul 10 20:41:41 UTC 2008

{noformat}

> DFSAdmin incorrectly reports cluster data.
> ------------------------------------------
>
>                 Key: HADOOP-1627
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1627
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.13.0
>            Reporter: Konstantin Shvachko
>            Assignee: Raghu Angadi
>            Priority: Minor
>         Attachments: HADOOP-1627.patch
>
>
> This is what dfsadmin -report currently prints.
> {code}
> hadoop:504>bin/hadoop dfsadmin -report
> Total raw bytes: 1705541296128 (1.55 TB)
> Used raw bytes: 1388220184240 (1.26 TB)
> % used: 81.39%
> Total effective bytes: 8388847 (8.00 MB)
> Effective replication multiplier: 165484.0270945459
> -------------------------------------------------
> Datanodes available: 3
> Name: alive.node.1:50077
> State          : In Service
> Total raw bytes: 60003868672 (55.88 GB)
> Used raw bytes: 21500184005 (20.02 GB)
> % used: 35.83%
> Last contact: Tue Jul 17 19:58:00 PDT 2007
> Name: alive.node.2:50077
> State          : In Service
> Total raw bytes: 1645537427456 (1.49 TB)
> Used raw bytes: 1366720000235 (1.24 TB)
> % used: 83.05%
> Last contact: Tue Jul 17 19:58:01 PDT 2007
> Name: dead.node:50077
> State          : In Service
> Total raw bytes: 0 (0.0 k)
> Used raw bytes: 0 (0.0 k)
> % used: NaN%
> Last contact: Wed Nov 01 12:18:10 PST 2006
> {code}
> # "Effective replication multiplier" is confusing and prints a strange number
> # Datanodes available: 3 - should count only live nodes.
> # A dead node "State" should not be "In Service".
> # "% used:" should not print "NaN%"
> # We should synchronize dfsadmin reporting with the what we report via the 
> web UI.
> Field names and numbers should be the same.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to