Using ‘-s’ option of ‘du’
command, we can get the summary of the space consumed by a directory.
$hadoop fs -du -h -s /user/cloudera
43.1 M 43.1 M /user/cloudera
$
$hadoop fs -du -h -s /user/cloudera/demo1/atlas.docx
5.9 M 5.9 M /user/cloudera/demo1/atlas.docx
Previous Next Home
No comments:
Post a Comment