如何获取 mapr-db table 的大小?

How to get the size of a mapr-db table?

我按照以下步骤创建了一个 mapr-db table:

$ 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

我知道 table "datastore" 是 link 内部 mapr-db 实现。但是 link 总是显示 512 字节的大小,而不管 table.

中的数据量如何

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

您应该使用 maprcli table info 命令:

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

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