Have you ever needed to find out the Block location and Block size for a file which is lying on hdfs hadoop? if so here is the command you can use to find out that.
For that we need “fsck” command which hadoop provide.
Here goes the command:
bin/hadoop fsck /filepath/filenameonhdfs –block –files -location
This command will provide information about Block location on what data node its lying, what are the blocks for that file
Just go and play with the command you will understand more.
No comments:
Post a Comment