HDFS-7156. Update fsck documentation. Contributed by Masahiro Yamaguch.

This commit is contained in:
Konstantin V Shvachko 2014-09-27 21:04:23 -07:00
parent 7f300bcdc7
commit 400e1bb4ef
3 changed files with 35 additions and 24 deletions

View File

@ -512,6 +512,8 @@ Release 2.6.0 - UNRELEASED
HDFS-6956. Allow dynamically changing the tracing level in Hadoop servers HDFS-6956. Allow dynamically changing the tracing level in Hadoop servers
(cmccabe) (cmccabe)
HDFS-7156. Update fsck documentation. (Masahiro Yamaguch via shv)
OPTIMIZATIONS OPTIMIZATIONS
HDFS-6690. Deduplicate xattr names in memory. (wang) HDFS-6690. Deduplicate xattr names in memory. (wang)

View File

@ -77,7 +77,8 @@ public class DFSck extends Configured implements Tool {
private static final String USAGE = "Usage: DFSck <path> " private static final String USAGE = "Usage: DFSck <path> "
+ "[-list-corruptfileblocks | " + "[-list-corruptfileblocks | "
+ "[-move | -delete | -openforwrite] " + "[-move | -delete | -openforwrite] "
+ "[-files [-blocks [-locations | -racks]]]] [-showprogress]\n" + "[-files [-blocks [-locations | -racks]]]] "
+ "[-includeSnapshots] [-showprogress]\n"
+ "\t<path>\tstart checking from this path\n" + "\t<path>\tstart checking from this path\n"
+ "\t-move\tmove corrupted files to /lost+found\n" + "\t-move\tmove corrupted files to /lost+found\n"
+ "\t-delete\tdelete corrupted files\n" + "\t-delete\tdelete corrupted files\n"

View File

@ -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]>>> [-includeSnapshots] [-showprogress]>>>
*------------------+---------------------------------------------+ *------------------------+---------------------------------------------+
|| COMMAND_OPTION || Description || COMMAND_OPTION || Description
*------------------+---------------------------------------------+ *------------------------+---------------------------------------------+
| <path> | Start checking from this path. | <path> | Start checking from this path.
*------------------+---------------------------------------------+ *------------------------+---------------------------------------------+
| -move | Move corrupted files to /lost+found | -move | Move corrupted files to /lost+found.
*------------------+---------------------------------------------+ *------------------------+---------------------------------------------+
| -delete | Delete corrupted files. | -delete | Delete corrupted files.
*------------------+---------------------------------------------+ *------------------------+---------------------------------------------+
| -openforwrite | Print out files opened for write. | -files | Print out files being checked.
*------------------+---------------------------------------------+ *------------------------+---------------------------------------------+
| -files | Print out files being checked. | -openforwrite | Print out files opened for write.
*------------------+---------------------------------------------+ *------------------------+---------------------------------------------+
| -blocks | Print out block report. | | Include snapshot data if the given path
*------------------+---------------------------------------------+ | -includeSnapshots | indicates a snapshottable directory or
| -locations | Print out locations for every block. | | there are snapshottable directories under it.
*------------------+---------------------------------------------+ *------------------------+---------------------------------------------+
| -racks | Print out network topology for data-node locations. | -list-corruptfileblocks| Print out list of missing blocks and
*------------------+---------------------------------------------+ | | files they belong to.
| -showprogress | Print out dots for progress in output. Default is OFF *------------------------+---------------------------------------------+
| | (no progress). | -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