Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.7.0
-
None
-
Reviewed
Description
HDFS-6917 added a helpful hdfs debug command to validate blocks and call recoverlease. The usage doc is kinda misleading, as following:
$ hdfs debug verify
creating a new configuration
verify [-meta <metadata-file>] [-block <block-file>]
Verify HDFS metadata and block files. If a block file is specified, we
will verify that the checksums in the metadata file match the block
file.
Actually the -meta <metadata-file> is necessary. [] is for optional arguments, if we follow the convention.
$ hdfs debug recoverLease creating a new configuration recoverLease [-path <path>] [-retries <num-retries>] Recover the lease on the specified path. The path must reside on an HDFS filesystem. The default number of retries is 1.
-path <path> is also the same case.