如何确定我的HBase表的大小?有没有命令这样做? [英] How do I determine the size of my HBase Tables ?. Is there any command to do so?

查看:303
本文介绍了如何确定我的HBase表的大小?有没有命令这样做?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Hbase shell上有多个表,我想将其复制到我的文件系统上。一些桌子超过100gb。但是,我的本地文件系统中只剩下55gb的可用空间。因此,我想知道我的hbase表的大小,以便我只能导出小尺寸的表。谢谢,
gautham

解决方案



p>尝试
hdfs dfs -du -h / hbase / data / default / (或/ hbase /取决于您使用的hbase版本)



这将显示表的文件使用了多少空间。



希望有所帮助。


I have multiple tables on my Hbase shell that I would like to copy onto my file system. Some tables exceed 100gb. However, I only have 55gb free space left in my local file system. Therefore, I would like to know the size of my hbase tables so that I could export only the small sized tables. Any suggestions are appreciated.

Thanks, gautham

解决方案

try hdfs dfs -du -h /hbase/data/default/ (or /hbase/ depending on hbase version you use)

This will show how much space is used by files of your tables.

Hope that will help.

这篇关于如何确定我的HBase表的大小?有没有命令这样做?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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