|
@@ -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"
|