[ 
https://issues.apache.org/jira/browse/HDFS-336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153573#comment-13153573
 ] 

Harsh J commented on HDFS-336:
------------------------------

For anyone who'd like to attempt this:

This can be done by promoting the numBlocks method and field, from the 
DatanodeDescriptor class to its superclass DatanodeInfo (which is what is 
exposed out, for report and such).

Then on, its as easy as printing it as part of the report, from within 
DatanodeInfo.
                
> dfsadmin -report should report number of blocks from datanode
> -------------------------------------------------------------
>
>                 Key: HDFS-336
>                 URL: https://issues.apache.org/jira/browse/HDFS-336
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Lohit Vijayarenu
>            Priority: Minor
>              Labels: newbie
>
> _hadoop dfsadmin -report_ seems to miss number of blocks from a datanode. 
> Number of blocks hosted by a datanode is a good info which should be included 
> in the report. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to