How to get HDFS file system check info
<p>I am currently trying to get information of files' storage size and number of block on HDFS in my application. Now the only way I find is that running the <code>fsck</code> command in application. After that parsing the output to get size and blocks. Is there other way to do that? Is there any API provided that I can call and directly get the number of blocks? Need advice. THX.</p>