0 votes
in Hadoop by
Which command will help you find the status of blocks and FileSystem health?

1 Answer

0 votes
by

Which command will help you find the status of blocks and FileSystem health?

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

...