[ https://issues.apache.org/jira/browse/HADOOP-5988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735498#action_12735498 ]
Edward J. Yoon commented on HADOOP-5988: ---------------------------------------- I see. I tried using getFileBlockLocations(). BlockLocation[] locations = srcFs.getFileBlockLocations(f, 0, f.getLen()); for(int ii = 0; ii < locations.length; ii++) { buf.append(locations[ii].toString()); } But, I can't get a blockid. Should I use the DFSClient? > Add a command to ' FsShell stat ' to get a file's block location information > ---------------------------------------------------------------------------- > > Key: HADOOP-5988 > URL: https://issues.apache.org/jira/browse/HADOOP-5988 > Project: Hadoop Common > Issue Type: Improvement > Reporter: He Yongqiang > > Adding an option to ' FsShell stat ' to get a file's block location > information will be very useful. > we can print the block location information in this format: > blockID:XXXXX byte-range:YYYY-ZZZZ location:dn1;dn2; > blockID:XXXXX byte-range:YYYY-ZZZZ location:dn1;dn2; -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.