|
@@ -82,32 +82,40 @@ HDFS Commands Guide
|
|
See {{{./HdfsUserGuide.html#fsck}fsck}} for more info.
|
|
See {{{./HdfsUserGuide.html#fsck}fsck}} for more info.
|
|
|
|
|
|
Usage: <<<hdfs fsck [GENERIC_OPTIONS] <path>
|
|
Usage: <<<hdfs fsck [GENERIC_OPTIONS] <path>
|
|
|
|
+ [-list-corruptfileblocks |
|
|
[-move | -delete | -openforwrite]
|
|
[-move | -delete | -openforwrite]
|
|
[-files [-blocks [-locations | -racks]]]
|
|
[-files [-blocks [-locations | -racks]]]
|
|
- [-showprogress]>>>
|
|
|
|
-
|
|
|
|
-*------------------+---------------------------------------------+
|
|
|
|
-|| COMMAND_OPTION || Description
|
|
|
|
-*------------------+---------------------------------------------+
|
|
|
|
-| <path> | Start checking from this path.
|
|
|
|
-*------------------+---------------------------------------------+
|
|
|
|
-| -move | Move corrupted files to /lost+found
|
|
|
|
-*------------------+---------------------------------------------+
|
|
|
|
-| -delete | Delete corrupted files.
|
|
|
|
-*------------------+---------------------------------------------+
|
|
|
|
-| -openforwrite | Print out files opened for write.
|
|
|
|
-*------------------+---------------------------------------------+
|
|
|
|
-| -files | Print out files being checked.
|
|
|
|
-*------------------+---------------------------------------------+
|
|
|
|
-| -blocks | Print out block report.
|
|
|
|
-*------------------+---------------------------------------------+
|
|
|
|
-| -locations | Print out locations for every block.
|
|
|
|
-*------------------+---------------------------------------------+
|
|
|
|
-| -racks | Print out network topology for data-node locations.
|
|
|
|
-*------------------+---------------------------------------------+
|
|
|
|
-| -showprogress | Print out dots for progress in output. Default is OFF
|
|
|
|
-| | (no progress).
|
|
|
|
-*------------------+---------------------------------------------+
|
|
|
|
|
|
+ [-includeSnapshots] [-showprogress]>>>
|
|
|
|
+
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
+|| COMMAND_OPTION || Description
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
+| <path> | Start checking from this path.
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
+| -move | Move corrupted files to /lost+found.
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
+| -delete | Delete corrupted files.
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
+| -files | Print out files being checked.
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
+| -openforwrite | Print out files opened for write.
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
+| | Include snapshot data if the given path
|
|
|
|
+| -includeSnapshots | indicates a snapshottable directory or
|
|
|
|
+| | there are snapshottable directories under it.
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
+| -list-corruptfileblocks| Print out list of missing blocks and
|
|
|
|
+| | files they belong to.
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
+| -blocks | Print out block report.
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
+| -locations | Print out locations for every block.
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
+| -racks | Print out network topology for data-node locations.
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
+| -showprogress | Print out dots for progress in output. Default is OFF
|
|
|
|
+| | (no progress).
|
|
|
|
+*------------------------+---------------------------------------------+
|
|
|
|
|
|
* Administration Commands
|
|
* Administration Commands
|
|
|
|
|