Q&A
Ask and answer questions to make information more available to wider audiences.
Nathaniel Kite @kitenathaniel   07, Jun 2023 12:00 AM
find status of blocks and FileSystem health
Which command will help me find the status of blocks and FileSystem health?
answers 1
 
Answer 1
Michaela Samuel @samuelmichaela5   12, Jun 2023 07:30 PM
To check the status of the blocks, use the command:

hdfs fsck <path> -files -blocks

To check the health status of FileSystem, use the command:

hdfs fsck / -files –blocks –locations > dfs-fsck.log