|
@@ -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 | -replicaDetails]]]] "
|
|
|
|
+ + "[-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"
|
|
@@ -93,11 +95,11 @@ public class DFSck extends Configured implements Tool {
|
|
+ "\t-files -blocks -locations\tprint out locations for every block\n"
|
|
+ "\t-files -blocks -locations\tprint out locations for every block\n"
|
|
+ "\t-files -blocks -racks"
|
|
+ "\t-files -blocks -racks"
|
|
+ "\tprint out network topology for data-node locations\n"
|
|
+ "\tprint out network topology for data-node locations\n"
|
|
- + "\t-storagepolicies\tprint out storage policy summary for the blocks\n\n"
|
|
|
|
|
|
+ + "\t-files -blocks -replicaDetails\tprint out each replica details \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"
|
|
|
|
- + "\t-replicaDetails\tprint out each replica details \n\n"
|
|
|
|
|
|
+ + " (under replicated, corrupted or not, etc)\n\n"
|
|
+ "Please Note:\n"
|
|
+ "Please Note:\n"
|
|
+ "\t1. By default fsck ignores files opened for write, "
|
|
+ "\t1. By default fsck ignores files opened for write, "
|
|
+ "use -openforwrite to report such files. They are usually "
|
|
+ "use -openforwrite to report such files. They are usually "
|