How to find the size of a HDFS file

后端 未结 6 1234
抹茶落季
抹茶落季 2020-12-23 21:10

How to find the size of a HDFS file? What command should be used to find the size of any file in HDFS.

6条回答
  •  無奈伤痛
    2020-12-23 21:36

    hdfs dfs -du -s -h /directory
    

    This is the human readable version, otherwise it will give in bad units (slight bigger)

提交回复
热议问题