hdfs[Command] fsck

Source: Internet
Author: User


Usage:dfsck <path> [-list-corruptfileblocks | [-move |-delete |-openforwrite] [-files [-blocks [-locations |-racks]]
<path> start checking from the This path
-move Move corrupted files To/lost+found
-delete Delete corrupted files
-files print out files being checked
-openforwrite print out files opened for write
-includesnapshots include snapshot data if the given path indicates a snapshottable directory or there is snapshottable D Irectories under it
-list-corruptfileblocks print out list of missing blocks and files they belong to
-blocks Print out block report
-locations Print out locations for every block
-racks Print out network topology for Data-node locations

Please note:
1. By default fsck ignores files opened for write, use-openforwrite to report such files. They is usually tagged corrupt or HEALTHY depending on their block allocation status
2. Option-includesnapshots should not being used for comparing stats, should is used only for health check, as this May cont Ain duplicates if the same file present in both original FS tree and inside snapshots.

hdfs[Command] fsck

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.