The way to check a HDFS directory's size?

前端 未结 10 620
轻奢々
轻奢々 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:48

    % of used space on Hadoop cluster
    sudo -u hdfs hadoop fs –df

    Capacity under specific folder:
    sudo -u hdfs hadoop fs -du -h /user

提交回复
热议问题