标签: hbase
我想弄清楚HBase中单行的大小。我还没有找到在线或通过任何hbase工具来实现的方法,我使用hbase hfile -mbsf来查找Hfile的平均行大小和其他统计信息,但我很好奇单行的大小。有没有人找到办法做到这一点?
hbase hfile -mbsf
答案 0 :(得分:1)
我可以很好地计算单个记录的大小 http://prafull-blog.blogspot.com/2012/06/how-to-calculate-record-size-of-hbase.html
答案 1 :(得分:0)
Result.getTotalSizeOfCells(Result result)
long size = Result.getTotalSizeOfCells(Result result)