The way to check a HDFS directory's size?

前端 未结 10 608
轻奢々
轻奢々 2021-01-30 12:14

I know du -sh in common Linux filesystems. But how to do that with HDFS?

10条回答
  •  伪装坚强ぢ
    2021-01-30 12:59

    To get the size of the directory hdfs dfs -du -s -h /$yourDirectoryName can be used. hdfs dfsadmin -report can be used to see a quick cluster level storage report.

提交回复
热议问题