Why do we use fsck command in HDFS?

fsck command is used for getting the details of files and directories in HDFS.

Main uses of fsck command in HDFS are as follows:

  • delete: We use this option to delete files in HDFS.
  • move: This option is for moving corrupt files to lost/found.
  • locations: This option prints all the locations of a block in HDFS.
  • racks: This option gives the network topology of data-node locations.
  • blocks: This option gives the report of blocks in HDFS.
Read the full book at www.amazon.com
Posted in Hadoop, Hadoop Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *

*