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

时间:2016-01-14 09:29:00

标签: hbase mapr

我按照以下步骤创建了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

我知道表&#34;数据存储&#34;是内部mapr-db实现的链接。但链接始终显示512字节大小,与该表中的数据量无关。

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

1 个答案:

答案 0 :(得分:2)

您应该使用maprcli table info命令:

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

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