Hadoop – HDFS free space available command

hadoophdfs

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.

Best Answer

Try this:

hdfs dfsadmin -report

With older versions of Hadoop, try this:

hadoop dfsadmin -report
Related Topic