HDFS-9317. Document fsck -blockId and -storagepolicy options in branch-2.7. (aajisaka)
This commit is contained in:
parent
59a2072135
commit
ce01a5951b
|
@ -84,6 +84,9 @@ Release 2.7.2 - UNRELEASED
|
||||||
HDFS-9305. Delayed heartbeat processing causes storm of subsequent
|
HDFS-9305. Delayed heartbeat processing causes storm of subsequent
|
||||||
heartbeats. (Arpit Agarwal)
|
heartbeats. (Arpit Agarwal)
|
||||||
|
|
||||||
|
HDFS-9317. Document fsck -blockId and -storagepolicy options in branch-2.7.
|
||||||
|
(aajisaka)
|
||||||
|
|
||||||
Release 2.7.1 - 2015-07-06
|
Release 2.7.1 - 2015-07-06
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -78,7 +78,9 @@ public class DFSck extends Configured implements Tool {
|
||||||
private static final String USAGE = "Usage: hdfs fsck <path> "
|
private static final String USAGE = "Usage: hdfs fsck <path> "
|
||||||
+ "[-list-corruptfileblocks | "
|
+ "[-list-corruptfileblocks | "
|
||||||
+ "[-move | -delete | -openforwrite] "
|
+ "[-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<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"
|
||||||
|
@ -92,7 +94,7 @@ public class DFSck extends Configured implements Tool {
|
||||||
+ "\t-blocks\tprint out block report\n"
|
+ "\t-blocks\tprint out block report\n"
|
||||||
+ "\t-locations\tprint out locations for every block\n"
|
+ "\t-locations\tprint out locations for every block\n"
|
||||||
+ "\t-racks\tprint out network topology for data-node locations\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"
|
+ "\t-blockId\tprint out which file this blockId belongs to, locations"
|
||||||
+ " (nodes, racks) of this block, and other diagnostics info"
|
+ " (nodes, racks) of this block, and other diagnostics info"
|
||||||
+ " (under replicated, corrupted or not, etc)\n\n"
|
+ " (under replicated, corrupted or not, etc)\n\n"
|
||||||
|
|
|
@ -101,6 +101,7 @@ Usage:
|
||||||
[-move | -delete | -openforwrite]
|
[-move | -delete | -openforwrite]
|
||||||
[-files [-blocks [-locations | -racks]]]
|
[-files [-blocks [-locations | -racks]]]
|
||||||
[-includeSnapshots]
|
[-includeSnapshots]
|
||||||
|
[-storagepolicies] [-blockId <blk_Id>]
|
||||||
|
|
||||||
| COMMAND\_OPTION | Description |
|
| COMMAND\_OPTION | Description |
|
||||||
|:---- |:---- |
|
|:---- |:---- |
|
||||||
|
@ -114,6 +115,8 @@ Usage:
|
||||||
| `-list-corruptfileblocks` | Print out list of missing blocks and files they belong to. |
|
| `-list-corruptfileblocks` | Print out list of missing blocks and files they belong to. |
|
||||||
| `-move` | Move corrupted files to /lost+found. |
|
| `-move` | Move corrupted files to /lost+found. |
|
||||||
| `-openforwrite` | Print out files opened for write. |
|
| `-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.
|
Runs the HDFS filesystem checking utility. See [fsck](./HdfsUserGuide.html#fsck) for more info.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue