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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…