【发布时间】: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 字节。
如何获取此表中数据的大小(以字节为单位)?
【问题讨论】: