HDFS free space available command

Animesh Raj Jha picture Animesh Raj Jha · Jul 20, 2012 · Viewed 79.2k times · Source

Is there a hdfs command to see available free space in hdfs. We can see that through browser at master:hdfsport in browser , but for some reason I can't access this and I need some command. I can see my disk usage through command ./bin/hadoop fs -du -h but cannot see free space available.

Thanks for answer in advance.

Answer

Razvan picture Razvan · Jul 20, 2012

Try this:

hdfs dfsadmin -report

With older versions of Hadoop, try this:

hadoop dfsadmin -report