Hadoop Comand
Syntax :
hadoop fsck /
COMMAND_OPTION |
Description |
path |
Start checking from this path. |
-delete |
Delete corrupted files. |
-files |
Print out files being checked. |
-files -blocks |
Print out the block report |
-files -blocks -locations |
Print out locations for every block. |
-files -blocks -racks |
Print out network topology for
data-node locations. |
-includeSnapshots |
Include snapshot data if the given
path indicates a snapshottable directory or there are snapshottable
directories under it. |
-list-corruptfileblocks |
Print out list of missing blocks and
files they belong to. |
-move |
Move corrupted files to /lost+found. |
-openforwrite |
Print out files opened for write. |
HDFS supports
the fsck command to check for various inconsistencies. It it is designed for
reporting problems with various files, for example, missing blocks for a file
or under-replicated blocks. Unlike a traditional fsck utility for native file
systems, this command does not correct the errors it detects. Normally NameNode
automatically corrects most of the recoverable failures. By default fsck
ignores open files but provides an option to select all files during reporting
Comments
Post a Comment