如何获得mapr db表的大小?

jtjikinw  于 2021-06-09  发布在  Hbase
关注(0)|答案(1)|浏览(334)

我按照以下步骤创建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”是指向内部maprdb实现的链接。但link总是显示512字节的大小,与表中的数据量无关。
如何获取此表中数据的大小(以字节为单位)?

qlvxas9a

qlvxas9a1#

你应该使用 maprcli table info 命令: maprcli table info -path /mapr/my.cluster.com/user/project/tables/datastore -long 您可以在此处找到有关此命令的文档:http://doc.mapr.com/display/mapr/table+info

相关问题