[ 
https://issues.apache.org/jira/browse/HADOOP-4761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652885#action_12652885
 ] 

Konstantin Shvachko commented on HADOOP-4761:
---------------------------------------------

# One can have block locations printed by calling
{code}
hadoop fsck /yourDir/yourFile -files -blocks -locations
{code}
# Data-nodes currently have a BlockScanner, which periodically on the 
background verifies data-node blocks and reports corrupted ones to the 
name-node.

Is that what you need?
It might be useful to add an option to fsck to do a complete file verification 
including its replicas on data-nodes by reading them as previously suggested.

> Tool to give the block location and to check if the block at a given datanode 
> is corrupt or not
> -----------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4761
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4761
>             Project: Hadoop Core
>          Issue Type: New Feature
>          Components: dfs
>            Reporter: Ramya R
>            Priority: Minor
>             Fix For: 0.20.0
>
>
> It would be useful if we could have a command line tool which would list out 
> the location of all the replicas of a block given a block-id/filename. Also, 
> an utility to check if the block at a given datanode is corrupt or not would 
> be of great help in managing the cluster.

-- 
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