【问题标题】:How to get the size of a mapr-db table?如何获取 mapr-db 表的大小?
【发布时间】:2016-04-19 13:26:05
【问题描述】:

我按照以下步骤创建了 mapr-db 表:

$ pwd
/mapr/cluster1/user/project

$ls
bin   src

$ maprcli volume create -name project-tables-vol -path /user/project/tables \
    -quota 100G -topology /data/rack1 

$ ls
bin   src   tables

$ hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
hbase(main):001:0> create '/user/project/tables/datastore', 'colfamily1'
0 row(s) in 0.5180 seconds
hbase(main):002:0> exit

$ ls -l tables
total 1
lrwxr-xr-x 1 mapr mapr 2 Oct 25 15:20 datastore -> mapr::table::2252.32.16498

我知道表“datastore”是指向内部 mapr-db 实现的链接。但无论该表中的数据量如何,链接始终显示大小为 512 字节。

如何获取此表中数据的大小(以字节为单位)?

【问题讨论】:

    标签: hbase mapr


    【解决方案1】:

    您应该使用maprcli table info 命令:

    maprcli table info -path /mapr/my.cluster.com/user/project/tables/datastore -long

    您可以在此处找到有关此命令的文档: http://doc.mapr.com/display/MapR/table+info

    【讨论】:

    • 感谢您的帮助。我有一个后续问题。当我运行这个命令时,我得到了多个列。虽然我对“totallogicalsize”和“totalphysicalsize”列感到困惑。你能强调一下这两者之间的区别吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-07-27
    • 1970-01-01
    • 2015-06-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多