How can I view how many blocks has a file been broken into, in a Hadoop file system?
We can use hadoop file system check command to know the blocks for the specific file.
Below is the command:
hadoop fsck [path] [options]
To view the blocks for the specific file :
hadoop fsck /path/to/file -files -blocks