New Contributor
Posts: 3
Registered: ‎11-13-2018
Accepted Solution

Consulting the HDFS cluster storage of a file



I am newbie in Hadoop. I want to know how to get information of the storage of a file in HDFS.

I have a master and 10 workers. I am connected to the master, in the master I make a put to HDFS

for a local file. I would like to know if there is any command to know how has been distributed this file in

the different nodes of the cluster


Thanks in advance

Posts: 430
Registered: ‎07-01-2015

Re: Consulting the HDFS cluster storage of a file

hdfs fsck will give you answers for your questions, there are multiple command line parameters, you can show the block's location as well.

Our community is getting a little larger. And a lot better.

Learn More about the Cloudera and Hortonworks community merger planned for late July and early August.