HDFS-9317. Document fsck -blockId and -storagepolicy options in branch-2.7. (aajisaka)

This commit is contained in:
Akira Ajisaka 2015-10-28 13:14:58 +09:00
parent 59a2072135
commit ce01a5951b
3 changed files with 10 additions and 2 deletions

View File

@ -84,6 +84,9 @@ Release 2.7.2 - UNRELEASED
HDFS-9305. Delayed heartbeat processing causes storm of subsequent
heartbeats. (Arpit Agarwal)
HDFS-9317. Document fsck -blockId and -storagepolicy options in branch-2.7.
(aajisaka)
Release 2.7.1 - 2015-07-06
INCOMPATIBLE CHANGES

View File

@ -78,7 +78,9 @@ public class DFSck extends Configured implements Tool {
private static final String USAGE = "Usage: hdfs fsck <path> "
+ "[-list-corruptfileblocks | "
+ "[-move | -delete | -openforwrite] "
+ "[-files [-blocks [-locations | -racks]]]]\n"
+ "[-files [-blocks [-locations | -racks]]]] "
+ "[-includeSnapshots] "
+ "[-storagepolicies] [-blockId <blk_Id>]\n"
+ "\t<path>\tstart checking from this path\n"
+ "\t-move\tmove corrupted files to /lost+found\n"
+ "\t-delete\tdelete corrupted files\n"
@ -92,7 +94,7 @@ public class DFSck extends Configured implements Tool {
+ "\t-blocks\tprint out block report\n"
+ "\t-locations\tprint out locations for every block\n"
+ "\t-racks\tprint out network topology for data-node locations\n"
+ "\t-storagepolicies\tprint out storage policy summary for the blocks\n\n"
+ "\t-storagepolicies\tprint out storage policy summary for the blocks\n"
+ "\t-blockId\tprint out which file this blockId belongs to, locations"
+ " (nodes, racks) of this block, and other diagnostics info"
+ " (under replicated, corrupted or not, etc)\n\n"

View File

@ -101,6 +101,7 @@ Usage:
[-move | -delete | -openforwrite]
[-files [-blocks [-locations | -racks]]]
[-includeSnapshots]
[-storagepolicies] [-blockId <blk_Id>]
| COMMAND\_OPTION | Description |
|:---- |:---- |
@ -114,6 +115,8 @@ Usage:
| `-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. |
| `-storagepolicies` | Print out storage policy summary for the blocks. |
| `-blockId` | Print out information about the block. |
Runs the HDFS filesystem checking utility. See [fsck](./HdfsUserGuide.html#fsck) for more info.