如何获取HDFS目录的配额 [英] How to get the quota of a directory for HDFS

查看:140
本文介绍了如何获取HDFS目录的配额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到有一个用于设置配额的命令,但是找不到用于获取配额的命令.

I see that there's a command to set quota but could not find a command for getting the quota.

有人可以帮助吗?谢谢

推荐答案

hadoop fs -count -q /path/to/directory
QUOTA  REMAINING_QUOTA SPACE_QUOTA    REMAINING_SPACE_QUOTA DIR_COUNT  FILE_COUNT CONTENT_SIZE   FILE_NAME
none   inf             54975581388800 5277747062870         3922       418464     16565944775310 hdfs://master:54310/path/to/directory

第三列将为您提供空间配额.

The third column will give you the space quota.

注意:列标题刚刚添加到此处以便于阅读,如果您想阅读更多有关获取hdfs文件大小的不同方法的信息,请参阅此处的全面博客文章:

NOTE: The column titles have just been added there for ease of reading, if you want to read more about the different ways of gettings the filesize of hdfs there's a comprehensive blog post here:

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆